#include "CGameApp.h"
//#include "CHomingWeapon.h"
#include <sstream>
using namespace std;

//to be used by remove_if only, returns true if item is done updating
bool IsItemUpdating( CSpecialItem* item )
{
	if( item == NULL ) { return true; }
		//return true if the item should be removed
	if( item->GetUpdating() == false )
	{
		delete item;
		return true;
	}
	return false;
}


CGameApp::CGameApp()
:Player(NULL),
NumPlayers(1),
//Enemy(NULL),
EnemyWave(NULL),
Block(NULL),
//PolyBlock(),
Polygons(NULL),
NumPolygons(0),
NumEnemies(MAX_ENEMIES),
NumBlocks(917),
//PowerUp(),
PowerUps(0),
audio(NULL),
KeyState(NULL),
ArrowState(NULL),
CurrentTime(0),
LastTime(0),
DeltaTime(0),
GameSpeed(1.0f),
FriendlyFire(false),
FireAnimationTexture(NULL),
ExplosionTexture(NULL),
EnemyExplosionTexture(NULL),
WorldEdge( 3000.0f )
{
	//Player = new CPlayer();
	Player = new CPlayer*[NumPlayers];
	for( int i = 0; i < NumPlayers; i++ )
	{
		Player[i] = new CPlayer();
	}
	
	//Enemy = new CEnemy*[NumEnemies];
	//for( int i = 0; i < NumEnemies; i++ )
	//{
	//	Enemy[i] = new CEnemy();
	//}

	EnemyWave = new CWave( MAX_ENEMIES );

	Block = new CEntity*[NumBlocks];
	for( int i = 0; i < NumBlocks; i++ )
	{
		Block[i] = new CEntity();
	}
	Polygons = new CPolygon[NumPolygons];

	PlayerTexture    = Texture();
	EnemyTexture     = Texture();
	BulletTexture	 = Texture();
	//HomingTexture	 = Texture();
	WallTexture		 = Texture();
	FireAnimationTexture = new Texture[Player[0]->GetFTextureSize()];
	ExplosionTexture = new Texture[Player[0]->GetETextureSize()];
	EnemyExplosionTexture = new Texture[4];
	BackgroundTexture= Texture();

	//CyanTexture     = Texture();
	//YellowTexture   = Texture();
	//OrangeTexture   = Texture();
	//RedTexture      = Texture();
	//BlueTexture     = Texture();
	//YellowTexture   = Texture();

	KeyState = new bool[255];
	for( int i = 0; i < 255; i++ )
	{
		KeyState[i] = false;
	}
	ArrowState = new bool[255];
	for( int i = 0; i < 255; i++ )
	{
		ArrowState[i] = false;
	}
	LastTime = CurrentTime = glutGet( GLUT_ELAPSED_TIME );

}

CGameApp::~CGameApp()
{
	//if(Player) { delete Player; }
	if(Player)
	{
		for( int i = 0; i < NumPlayers; i++ )
		{
			delete Player[i];
		}
		delete[] Player;
	}

	if(EnemyWave)	{ delete EnemyWave; }
	if(Block)
	{
		for( int i = 0; i < NumBlocks; i++ )
		{
			delete Block[i];
		}
		delete[] Block;
	}
	list< CSpecialItem* >::iterator i;
	for( i = PowerUps.begin(); i != PowerUps.end(); i++ )
	{
		delete (*i);	
	}
	PowerUps.clear();
	if( Polygons )  { delete[] Polygons; }
	if( KeyState )	{ delete[] KeyState; }
	if( ArrowState ){ delete[] ArrowState; }
	if( FireAnimationTexture ) { delete[] FireAnimationTexture; }
	if( ExplosionTexture ) { delete[] ExplosionTexture; }
	if( EnemyExplosionTexture ) { delete[] EnemyExplosionTexture; }
	audio->StopAll();
	delete audio;
}

void CGameApp::Update()
{
	//cout << "game update called" << endl;
	//update the time
	UpdateTime();
	audio->Update();
	//update player position based on input
	//the 360 is because opengl uses degrees, and rotate speed is revolutions per second

	//if( KeyState['g'] == true ) { SortLevelBlocks(); }

	if( KeyState['n'] == true )	{ GameSpeed += DeltaTime*0.5f; cout << GameSpeed << endl; }
	if( KeyState['m'] == true )	{ GameSpeed -= DeltaTime*0.5f; }

	for( int i = 0; i < NumBlocks; i++ )
	{
		if( KeyState['f'] == true ) { Block[i]->SetOldPosY( Block[i]->GetPosY() ); Block[i]->MovePosY( DeltaTime * 1.3f ); 	} 
		if( KeyState['v'] == true ) { Block[i]->SetOldPosY( Block[i]->GetPosY() ); Block[i]->MovePosY( DeltaTime * -1.3f ); }
		if( KeyState['c'] == true ) { Block[i]->SetOldPosX( Block[i]->GetPosX() ); Block[i]->MovePosX( DeltaTime * -1.3f ); } 
		if( KeyState['b'] == true ) { Block[i]->SetOldPosX( Block[i]->GetPosX() ); Block[i]->MovePosX( DeltaTime * 1.3f ); }
	//if( i == 11 ) { cout << Block[i]->GetPosY() << endl; }
	}

	if( KeyState['z'] == true )
	{
/*	//commenting out to avoid bugs when switching over to enemywave
		CWeapon* wpn = new CWeapon( 10, 5 );
		wpn->Attach( Enemy[0] );
		//load won't work unless it has a ship attached to it
		wpn->Load();
		wpn->SpreadAngle = 9.0f;
		wpn->RateOfFire = 15.0f;
		Enemy[0]->EquipPrimary( wpn );
*/
		//CWeapon* wpn = new CWeapon( 10, 5 );
		//wpn->Attach( Player );
		////load won't work unless it has a ship attached to it
		//wpn->Load();
		//wpn->SpreadAngle = 9.0f;
		//wpn->RateOfFire = 15.0f;
		//Player->EquipPrimary( wpn );
	}
//
	if( KeyState['x'] == true )
	{
		//for( int i = 0; i < Player->PrimaryWeapon->NumBullets; i++ )
		//{
		//	for( int j = 0; j < Player->PrimaryWeapon->Spread; j++ )
		//	{
		//		Player->PrimaryWeapon->Bullets[i][j]->SetVel(0,-1);
		//	}
		//}
/*	//commenting out to avoid bugs when switching over to enemywave
		CWeapon* wpn = new CHomingWeapon( 10, 3 );
		wpn->Attach( Enemy[1] );
		//load won't work unless it has a ship attached to it
		wpn->Load();
		wpn->SpreadAngle = 30.0f;
		//wpn->RateOfFire = 15.0f;
		Enemy[1]->EquipPrimary( wpn );
*/
	}

	bool setoldpos = false;

	//player 1
	//if( KeyState['w'] == true || KeyState['i'] == true )//player 1 move forward
	//{
	//	if( setoldpos == false )
	//	{
	//		Player[0]->SetOldPos( Player[0]->GetPosX(), Player[0]->GetPosY() );
	//		setoldpos = true;
	//	}
	//	Player[0]->MovePosY( DeltaTime*Player[0]->GetSpeed()*Player[0]->GetVelY() );
	//	Player[0]->MovePosX( DeltaTime*Player[0]->GetSpeed()*Player[0]->GetVelX() );
	//}
	//if( KeyState['d'] == true )//player 2 rotate right
	//{
	//	Player[0]->RotateFaceAngleBy( -DeltaTime*Player[0]->GetRotateSpeed()*360 );
	//}
	//if( KeyState['a'] == true )//player 2 rotate left
	//{
	//	Player[0]->RotateFaceAngleBy( DeltaTime*Player[0]->GetRotateSpeed()*360 );
	//}
	//if( KeyState['s'] == true || KeyState['k'] == true )//player 2 move back
	//{
	//	if( setoldpos == false )
	//	{
	//		Player[0]->SetOldPos( Player[0]->GetPosX(), Player[0]->GetPosY() );
	//		setoldpos = true;
	//	}
	//	Player[0]->MovePosY( -DeltaTime*Player[0]->GetSpeed()*Player[0]->GetVelY() );
	//	Player[0]->MovePosX( -DeltaTime*Player[0]->GetSpeed()*Player[0]->GetVelX() );
	//}


	setoldpos = false;

	//player 2
	if( NumPlayers > 1 )
	{
		if( ArrowState[101] || KeyState['i'] == true )//player 2 move forward
		{
			if( setoldpos == false )
			{
				Player[1]->SetOldPos( Player[1]->GetPosX(), Player[1]->GetPosY() );
				setoldpos = true;
			}
			Player[1]->MovePosY( DeltaTime*Player[1]->GetSpeed()*Player[1]->GetVelY() );
			Player[1]->MovePosX( DeltaTime*Player[1]->GetSpeed()*Player[1]->GetVelX() );
		}
		if( ArrowState[102] == true )//player 2 rotate right
		{
			Player[1]->RotateFaceAngleBy( -DeltaTime*Player[1]->GetRotateSpeed()*360 );
		}
		if( ArrowState[100] == true )//player 2 rotate left
		{
			Player[1]->RotateFaceAngleBy( DeltaTime*Player[1]->GetRotateSpeed()*360 );
		}
		if( ArrowState[103] || KeyState['k'] == true )//player 2 move back
		{
			if( setoldpos == false )
			{
				Player[1]->SetOldPos( Player[1]->GetPosX(), Player[1]->GetPosY() );
				setoldpos = true;
			}
			Player[1]->MovePosY( -DeltaTime*Player[1]->GetSpeed()*Player[1]->GetVelY() );
			Player[1]->MovePosX( -DeltaTime*Player[1]->GetSpeed()*Player[1]->GetVelX() );
		}
	//
		
		
	}

	//enemy movement
//	for( int i=0; i<NumEnemies; i++ )
//	{
//		Enemy[i]->RotateFaceAngleBy( DeltaTime*Enemy[i]->GetRotateSpeed()*360 );
//	}//next enemy
	//player bullets    //positions for all these
	//Player->Update();
	for( int i = 0; i < NumPlayers; i++ )
	{
		Player[i]->Update();
	}

	//cout << Player[0]->PrimaryWeapon << " " << Player[1]->PrimaryWeapon << endl;  

	//cout << "this should be one" << endl;
	//after updating player positions check for bullet fires, otherwise bullets can move through walls
	if( KeyState[9] == true ) //tab
	{
		//Player[0]->FireBullet();
	}
	if( KeyState[32] == true && NumPlayers > 1 ) //spacebar
	{
		Player[1]->FireBullet();
	}

	//EnemyWave->Update();
	if( EnemyWave->Update() == false )//EnemiesRemaining <= 0 )
	{
		CreateNewWave();
	}
	//for( int i=0; i<NumEnemies; i++ )
	//{
	//	//Enemy[i]->FireBullet();
	//	Enemy[i]->Update();
	//}
	for( int i=0; i<NumBlocks; i++ )
	{
		Block[i]->SetOldPosY( Block[i]->GetPosY() ); 
		//Block[i]->MovePosY( DeltaTime * -1.4f );
		//if( KeyState['c'] == true ) { Block[i]->SetOldPosX( Block[i]->GetPosX() ); Block[i]->MovePosX( DeltaTime * -1.3f ); } 
		//if( KeyState['b'] == true ) { Block[i]->SetOldPosX( Block[i]->GetPosX() ); Block[i]->MovePosX( DeltaTime * 1.3f ); }
		Block[i]->Update();
	}
	//PowerUp.Update();
	UpdateItems();
	//enemy bullets

	//collision checks on everything
	//EnemyWave->Collision( Player );
	CheckCollision();
	//updating and initializing any new events

}

void CGameApp::Render()
{
	//render the background, have a background object do this
	float start = 0.0f;
	float end = 1.0f;
	//float mid = 0.5f;
	float left	= -10.0f;
	float right	= 10.0f;
	float up	= 10.0f;
	float down	= -10.0f;
	static float viewx = -10.0f;//9.99f;
	static float viewy = 10.0f;
	static float sx    = -90.0f;
	static float sy	   = 60.0f;

	viewx -= Player[0]->Vel.x * DeltaTime * Player[0]->GetSpeed();
	viewy -=  DeltaTime * Player[0]->GetSpeed() * Player[0]->Vel.y;
	if( viewx >= 10.0f ) { viewx = -10.0f; }
	if( viewx < -10.0f ) { viewx = 10.0f; }
	if( viewy >= 10.0f ) { viewy = -10.0f; }
	if( viewy < -10.0f ) { viewy = 10.0f; }
	viewx = -10;
	viewy = -10;
	float midx	= 1-((viewx+10)/20);//0.5f;//0.5f;
	float midy	= 1-(-viewy+10)/20;//0.5f;//0.5f;
	//float viewx = midx*20.0f-10.0f;
	//float viewy = -midy*20.0f+10.0f;
	//float m		= 0;//1.0f/512.0f;//512.0f;//0.00095f;
	float pd = 0.0f;
	float pd2 = 0.0f;
	//for( int i = 0; i<NumPlayers; i++ )
	//{
		if( Player[0]->GetDAlive() && Player[0]->GetAlive() )
		{ 
			pd = 1-(Player[0]->GetDTimer() / Player[0]->GetMaxDamageTime()); 
		}//pd = 1.0f; }
		if( NumPlayers > 1 )
		{
			if( Player[1]->GetDAlive() && Player[1]->GetAlive() )
			{ 
				pd2 = 1-(Player[1]->GetDTimer() / Player[1]->GetMaxDamageTime()); 
			}//pd = 1.0f; }
		}
		float red = pd;
		float green = 0; //if( (pd && pd2) > 0.02f ) { green = 0; }// pd*pd2;// if( pd2<pd ) { green = pd2; }
		float blue = pd2;
	//}
	//else { pd = 0.0f; }
	//glColor4f( 0,0.5f,0,1);
	glColor4f( 1 , 1 , 1 , 1 );//pd-(Player->GetDTimer()/Player->GetMaxDamageTime()), 1 );
	//glColor4f(  1 , pd , pd, 1 );
	//glColor4f( pd2, pd2, 1 , 1 );
	//glColor4f( 1.0f, 1.0f, 1.0f, 1.0f );
	glBindTexture( GL_TEXTURE_2D , BackgroundTexture.texID );
	glBegin( GL_QUADS ); //triangle fan

		//glTexCoord2f( start, start );				//top left
		//glVertex2f( -10,10 );						//first second
		//				
		//glTexCoord2f( start, end );					//bottom left
		//glVertex2f( -10, -10 );						//first

		//glTexCoord2f( end, end );					//bottom right
		//glVertex2f( 10, -10 );						//first second

		//glTexCoord2f( end, start );					//top right
		//glVertex2f( 10, 10 );						//second
	for( int i = 0; i < 19; i++ )
	{
		for( int j = 0; j < 17; j++ )//to prevent using %, supposed framerate increase
		{
	//top left image, bottom right of texture
		glTexCoord2f( midx, midy );					//top left
		glVertex2f( -10+i*20+sx,10+j*20-sy );						//first second
						
		glTexCoord2f( midx, end );					//bottom left
		glVertex2f( -10+i*20+sx, viewy+j*20-sy );						//first

		glTexCoord2f( end, end );					//bottom right
		glVertex2f( viewx+i*20+sx, viewy+j*20-sy );						//first second

		glTexCoord2f( end, midy );					//top right
		glVertex2f( viewx+i*20+sx, 10+j*20-sy );						//second

	//top right image, bottom left of texture
		glTexCoord2f( start, midy );				//top left
		glVertex2f( viewx+i*20+sx,10+j*20-sy );						//first second
						
		glTexCoord2f( start, end );					//bottom left
		glVertex2f( viewx+i*20+sx, viewy+j*20-sy );						//first

		glTexCoord2f( midx, end );					//bottom right
		glVertex2f( 10+i*20+sx, viewy+j*20-sy );						//first second

		glTexCoord2f( midx, midy );					//top right
		glVertex2f( 10+i*20+sx, 10+j*20-sy );						//second

	//bottom left image, top right of texture
		glTexCoord2f( midx, start );				//top left
		glVertex2f( -10+i*20+sx,viewy+j*20-sy );						//first second
						
		glTexCoord2f( midx, midy );					//bottom left
		glVertex2f( -10+i*20+sx, -10+j*20-sy );						//first

		glTexCoord2f( end, midy );					//bottom right
		glVertex2f( viewx+i*20+sx, -10+j*20-sy );						//first second

		glTexCoord2f( end, start );					//top right
		glVertex2f( viewx+i*20+sx, viewy+j*20-sy );							//second

	//bottom right image, top left of texture
		glTexCoord2f( start, start );				//top left
		glVertex2f( viewx+i*20+sx,viewy+j*20-sy );						//first second
						
		glTexCoord2f( start, midy );					//bottom left
		glVertex2f( viewx+i*20+sx, -10+j*20-sy );						//first

		glTexCoord2f( midx, midy );					//bottom right
		glVertex2f( 10+i*20+sx, -10+j*20-sy );						//first second

		glTexCoord2f( midx, start );					//top right
		glVertex2f( 10+i*20+sx, viewy+j*20-sy );						//second
		}
	}

	glEnd();
	
	//glColor4f( red , green , blue , 1 );
	//glBegin( GL_QUADS ); //triangle fan

	//	//glTexCoord2f( start, start );				//top left
	//	//glVertex2f( -10,10 );						//first second
	//	//				
	//	//glTexCoord2f( start, end );					//bottom left
	//	//glVertex2f( -10, -10 );						//first

	//	//glTexCoord2f( end, end );					//bottom right
	//	//glVertex2f( 10, -10 );						//first second

	//	//glTexCoord2f( end, start );					//top right
	//	//glVertex2f( 10, 10 );						//second

	////top left image, bottom right of texture
	//	glTexCoord2f( midx, midy );					//top left
	//	glVertex2f( -10,10 );						//first second
	//					
	//	glTexCoord2f( midx, end );					//bottom left
	//	glVertex2f( -10, viewy );						//first

	//	glTexCoord2f( end, end );					//bottom right
	//	glVertex2f( viewx, viewy );						//first second

	//	glTexCoord2f( end, midy );					//top right
	//	glVertex2f( viewx, 10 );						//second

	////top right image, bottom left of texture
	//	glTexCoord2f( start, midy );				//top left
	//	glVertex2f( viewx,10 );						//first second
	//					
	//	glTexCoord2f( start, end );					//bottom left
	//	glVertex2f( viewx, viewy );						//first

	//	glTexCoord2f( midx, end );					//bottom right
	//	glVertex2f( 10, viewy );						//first second

	//	glTexCoord2f( midx, midy );					//top right
	//	glVertex2f( 10, 10 );						//second

	////bottom left image, top right of texture
	//	glTexCoord2f( midx, start );				//top left
	//	glVertex2f( -10,viewy );						//first second
	//					
	//	glTexCoord2f( midx, midy );					//bottom left
	//	glVertex2f( -10, -10 );						//first

	//	glTexCoord2f( end, midy );					//bottom right
	//	glVertex2f( viewx, -10 );						//first second

	//	glTexCoord2f( end, start );					//top right
	//	glVertex2f( viewx, viewy );							//second

	////bottom right image, top left of texture
	//	glTexCoord2f( start, start );				//top left
	//	glVertex2f( viewx,viewy );						//first second
	//					
	//	glTexCoord2f( start, midy );					//bottom left
	//	glVertex2f( viewx, -10 );						//first

	//	glTexCoord2f( midx, midy );					//bottom right
	//	glVertex2f( 10, -10 );						//first second

	//	glTexCoord2f( midx, start );					//top right
	//	glVertex2f( 10, viewy );						//second

	//glEnd();













	//Player->Render();

	//float start = 0.0f;
	//float end = 1.0f;
	EnemyWave->Render();
	//for( int i =0; i<NumEnemies; i++ )
	//{
	//	Enemy[i]->Render();
	//}
	for( int i=0; i<NumBlocks; i++ )
	{
		Block[i]->Render();
	}	
	//PolyBlock.Render();
	for( int i=0; i<NumPolygons; i++ )
	{
		Polygons[i].Render();
	}

	//PowerUp.Render();
	list< CSpecialItem* >::iterator i;
	for( i = PowerUps.begin(); i != PowerUps.end(); i++ )
	{
		if( (*i) )
		{
			(*i)->Render();	
		}
	}
	for( int i = 0; i < NumPlayers; i++ )
	{
		Player[i]->Render();
	}	

}


void CGameApp::LoadTextures()
{
	//load all textures for the game
	//player texture
	LoadTexture( "images/player_level_3_idle.tga", PlayerTexture );

	LoadTexture( "images/player_level_1_idle.tga", PlayerTextureOne );
	LoadTexture( "images/player_level_2_idle.tga", PlayerTextureTwo );
	LoadTexture( "images/player_level_3_idle.tga", PlayerTextureThree );
	LoadTexture( "images/player_level_4_idle.tga", PlayerTextureFour );
	LoadTexture( "images/player_level_5_idle.tga", PlayerTextureFive );

	LoadTexture( "images/player_level_1_idle_mirror.tga", PlayerTextureOneMirror );
	LoadTexture( "images/player_level_2_idle_mirror.tga", PlayerTextureTwoMirror );
	LoadTexture( "images/player_level_3_idle_mirror.tga", PlayerTextureThreeMirror );
	LoadTexture( "images/player_level_4_idle_mirror.tga", PlayerTextureFourMirror );
	LoadTexture( "images/player_level_5_idle_mirror.tga", PlayerTextureFiveMirror );


	LoadTexture( "images/player_level_3_idle_mirror.tga", PlayerMirrorTexture );
	LoadTexture( "images/HeartBullet.tga", BulletTexture );
	LoadTexture( "images/breakbullet.tga", BulletBreakTexture );

	LoadTexture( "images/tiles/single-break.tga", WallTexture );//orange.tga", WallTexture );
	LoadTexture( "images/tiles/tile_btm-l.tga", TopLeftTexture );				LoadTexture( "images/tiles/break-btm-l.tga", TopLeftBrokenTexture );
	LoadTexture( "images/tiles/tile_center-l.tga", TopCenterTexture );			LoadTexture( "images/tiles/break-center-l.tga", TopCenterBrokenTexture );
	LoadTexture( "images/tiles/tile_top-l.tga", TopRightTexture );				LoadTexture( "images/tiles/break-top-l.tga", TopRightBrokenTexture );

	LoadTexture( "images/tiles/tile_btm-c.tga", CenterLeftTexture );			LoadTexture( "images/tiles/break-btm-c.tga", CenterLeftBrokenTexture );
	LoadTexture( "images/tiles/tile_center-c.tga", CenterCenterTexture );		LoadTexture( "images/tiles/break-center-c.tga", CenterCenterBrokenTexture );
	LoadTexture( "images/tiles/tile_top-c.tga", CenterRightTexture );			LoadTexture( "images/tiles/break-top-c.tga", CenterRightBrokenTexture );

	LoadTexture( "images/tiles/tile_btm-r.tga", BottomLeftTexture );			LoadTexture( "images/tiles/break-btm-r.tga", BottomLeftBrokenTexture ); 
	LoadTexture( "images/tiles/tile_center-r.tga", BottomCenterTexture );		LoadTexture( "images/tiles/break-center-r.tga", BottomCenterBrokenTexture );
	LoadTexture( "images/tiles/tile_top-r.tga", BottomRightTexture );			LoadTexture( "images/tiles/break-top-r.tga", BottomRightBrokenTexture );

	LoadTexture( "images/tiles/vertical-b.tga", LeftHorizontalTexture );		LoadTexture( "images/tiles/break-vertical-b.tga", LeftHorizontalBrokenTexture );
	LoadTexture( "images/tiles/vertical-c.tga", CenterHorizontalTexture );		LoadTexture( "images/tiles/break-vertical-c.tga", CenterHorizontalBrokenTexture );
	LoadTexture( "images/tiles/vetical_t.tga", RightHorizontalTexture );		LoadTexture( "images/tiles/break-vertical-t.tga", RightHorizontalBrokenTexture );

	LoadTexture( "images/tiles/horizontal-l.tga", TopVerticalTexture );			LoadTexture( "images/tiles/break-horizontal-l.tga", TopVerticalBrokenTexture );
	LoadTexture( "images/tiles/horizontal-c.tga", CenterVerticalTexture );		LoadTexture( "images/tiles/break-horizontal-c.tga", CenterVerticalBrokenTexture );
	LoadTexture( "images/tiles/horizontal-r.tga", BottomVerticalTexture );		LoadTexture( "images/tiles/break-horizontal-r.tga", BottomVerticalBrokenTexture );

	LoadTexture( "images/tiles/single.tga", SingleTexture );					LoadTexture( "images/tiles/single-break.tga", SingleBrokenTexture );
	LoadTexture( "images/goal.tga", CheckpointTextureTexture );
	//LoadTexture( "images/bulletani1.tga", ExplosionTexture[0] );
	//LoadTexture( "images/bulletani2.tga", ExplosionTexture[1] );
	//LoadTexture( "images/bulletani3.tga", ExplosionTexture[2] );
	//LoadTexture( "images/bulletani4.tga", ExplosionTexture[3] );
	//LoadTexture( "images/bulletani5.tga", ExplosionTexture[4] );
	//LoadTexture( "images/bulletani6.tga", ExplosionTexture[5] );

	LoadTexture( "images/FireAnimation01.tga", FireAnimationTexture[0] );
	LoadTexture( "images/FireAnimation02.tga", FireAnimationTexture[1] );
	LoadTexture( "images/FireAnimation03.tga", FireAnimationTexture[2] );
	LoadTexture( "images/expl2_00.tga", ExplosionTexture[0] );
	LoadTexture( "images/expl2_01.tga", ExplosionTexture[1] );
	LoadTexture( "images/expl2_02.tga", ExplosionTexture[2] );
	LoadTexture( "images/expl2_03.tga", ExplosionTexture[3] );
	LoadTexture( "images/expl2_04.tga", ExplosionTexture[4] );
	LoadTexture( "images/expl2_05.tga", ExplosionTexture[5] );
	LoadTexture( "images/expl2_06.tga", ExplosionTexture[6] );
	LoadTexture( "images/expl2_07.tga", ExplosionTexture[7] );
	LoadTexture( "images/expl2_08.tga", ExplosionTexture[8] );
	LoadTexture( "images/expl2_09.tga", ExplosionTexture[9] );

	LoadTexture( "images/EnemyDeath01.tga", EnemyExplosionTexture[0] );
	LoadTexture( "images/EnemyDeath02.tga", EnemyExplosionTexture[1] );
	LoadTexture( "images/EnemyDeath03.tga", EnemyExplosionTexture[2] );
	LoadTexture( "images/EnemyDeath04.tga", EnemyExplosionTexture[3] );
	//LoadTexture( "images/explosion00.tga", ExplosionTexture[0] );
	//LoadTexture( "images/explosion01.tga", ExplosionTexture[1] );
	//LoadTexture( "images/explosion02.tga", ExplosionTexture[2] );
	//LoadTexture( "images/explosion03.tga", ExplosionTexture[3] );
	//LoadTexture( "images/explosion04.tga", ExplosionTexture[4] );
	LoadTexture( "images/enemy_level_1_idle.tga", EnemyTexture );
	LoadTexture( "images/enemyflash2.tga", EnemyDamageTexture );
	LoadTexture( "images/ghost.tga", GhostTexture );
	LoadTexture( "images/orange.tga", WelcomeTexture );
	LoadTexture( "images/orange.tga", EndGameTexture );
	
	//LoadTexture( "images/redfiller.tga", RedTexture );
	//LoadTexture( "images/orangefiller.tga", OrangeTexture );
	//LoadTexture( "images/bluefiller.tga", BlueTexture );
	//LoadTexture( "images/cyanfiller.tga", CyanTexture );
	//LoadTexture( "images/greenfiller.tga", GreenTexture );
	//LoadTexture( "images/yellowfiller.tga", YellowTexture );

	std::ostringstream mystrin;
	mystrin.str("");
	srand( glutGet( GLUT_ELAPSED_TIME ) );
	mystrin << "images/cloudbackground.tga";//spacebackground" << rand()%3+1 << ".tga";
	string mystring = mystrin.str();

	//string mystring = "images/spacebackground";
	//mystring << 2;//rand()%2 + 2;
	//mystring << ".tga";//"images/spacebackground.tga"
	char* str = new char[mystring.size() + 1];//c_str();
	std::copy(mystring.begin(), mystring.end(), str);
	str[mystring.size()] = '\0';
	//char * writable = new char[str.size() + 1];
//std::copy(str.begin(), str.end(), writable);
//writable[str.size()] = '\0'; // don't forget the terminating 0

// don't forget to free the string after finished using it
//delete[] writable;

	LoadTexture( "images/spacebackground.tga" , BackgroundTexture );//str , BackgroundTexture );//spacebackground.tga", BackgroundTexture );
	delete[] str;
	//if( Player )
	//{ 
	//	for( int x = 0; x < Player->PrimaryWeapon->NumBullets; x++ )
	//	{
	//		for( int y = 0; y < Player->PrimaryWeapon->Spread; y++ )
	//		{
				//Player->PrimaryWeapon->Bullets[x][y]->SetTexture( BulletTexture.texID );
				//Player->PrimaryWeapon->Bullets[x][y]->SetExplosionTexture( ExplosionTexture );
	//		}
	//	}
		//cout << Player->GetPosX() << " " << Player->GetPosY() << endl;
		//Player->SetTexture( PlayerTexture.texID );
		//Player->SetExplosionTexture( ExplosionTexture );
	//}
	
	//if( Enemy )
	//{
	//	for( int i = 0; i < NumEnemies; i++ )
	//	{
	//		//Enemy[i]->SetTexture( EnemyTexture.texID );
	//		//Enemy[i]->SetExplosionTexture( ExplosionTexture );
	//	}
	//}
	//loadTexture( "images/block01.tga", BlockTextures[1] );
	//loadTexture( "images/block02.tga", BlockTextures[2] );
	//loadTexture( "images/block03.tga", BlockTextures[3] );


}

void CGameApp::LoadTexture( char* fileName, Texture& tex )
{
	if( LoadTGA( &tex, fileName ) )
	{
		glGenTextures( 1, &(tex.texID) ); 
		glBindTexture( GL_TEXTURE_2D , tex.texID );
		glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
		glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
		glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP );
		glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP );
		glTexImage2D( GL_TEXTURE_2D, 0, tex.type, tex.width, tex.height, 0, tex.type, GL_UNSIGNED_BYTE, tex.imageData );
		glEnable(GL_TEXTURE_2D);
		if (tex.imageData)
		{
			free(tex.imageData); 
		}
		//printf( "texture (%dx%dx%d) id:%d\n", tex.width, tex.height, tex.bpp, tex.texID );
	}
	else
	{
		printf( "failed\n" );
	}
}

void CGameApp::InitializeGame()
{
	//load the textures
	LoadTextures();

	//create audio system
	audio = new Audio();
	audio->Init();
	if( !audio->Load( "sounds/fire.wav", "fire" ) )//shotgun_blast02.ogg" , "fire" ) )
	{
		//int i = 0;
		cout << "fire sound didn't load" << endl;
	}
	if( !audio->Load( "sounds/heartbeat_pulse.wav", "fire2" ) )//shotgun_blast02.ogg" , "fire" ) )
	{
		//int i = 0;
		cout << "fire2 sound didn't load" << endl;
	}
	//initialize the player position and information
	for( int i = 0; i < NumPlayers; i++ )
	{
		Player[i]->SetGame( this );
		Player[i]->Load();
		Player[i]->SetPos( 5.0f, 150.0f );
		Player[i]->SetOldPos( Player[i]->GetPosX(), Player[i]->GetPosY()-0.01f );
		Player[i]->SetSize( Player[i]->GetSize() );
		//Player[i]->SetFaceAngle( rand()%360 );
	}
	//setting the individual player textures here
	//Player[1]->SetTexture( PlayerDamageTexture.texID );

	EnemyWave->SetGame( this );
	EnemyWave->Initialize();
	//for( int i = 0; i < NumEnemies; i++ )
	//{
	//	Enemy[i]->SetGame( this );
	//	Enemy[i]->Load();
	//	Enemy[i]->SetPos( -9.0f + i*2, 7.0f );
	//	Enemy[i]->SetOldPos( Enemy[i]->GetPosX(), Enemy[i]->GetPosY() ); 
	//	Enemy[i]->SetAlive( false );
	//	Enemy[i]->Waiting = true;
	//	Enemy[i]->TimeUntilAlive = 1.0f * (i+1);
	//}//next enemy

	//load the block/wall thingy that will be replaced when i put in level data

LoadLevel();


	for( int i=0; i<NumBlocks; i++ )
	{
		Block[i]->SetGame( this );
		Block[i]->SetAlive( true );
		Block[i]->SetHealth( 10 );
		Block[i]->SetFaceAngle( 0.0f );
		//Block[i]->SetPos( rand()%19-9,rand()%100 );
		//if( i >= 15 )
		//{
		//	Block[i]->SetPos( (i-15)-30+(i-15)*2.0f , -15 );
		//	Block[i]->SetSize(3);
		//}
		Block[i]->SetOldPos( Block[i]->GetPosX(), Block[i]->GetPosY() );
		

		//Block[i]->SetVel( 0.0f, 0.0f );
		//Block[i]->SetSpeed( 0.3f );
		//Block[i]->SetRotateSpeed( 0.0f );
		//Block[i]->SetSize( 1.0f);
		Block[i]->SetCollisionSize( Block[i]->GetSize() );
		//Block[i]->SetTexture( TopCenterBrokenTexture.texID );
		if( Block[i]->GetTexture() == TopLeftBrokenTexture.texID ||
			Block[i]->GetTexture() == TopCenterBrokenTexture.texID ||
			Block[i]->GetTexture() == TopRightBrokenTexture.texID ||
			Block[i]->GetTexture() == CenterLeftBrokenTexture.texID ||
			Block[i]->GetTexture() == CenterCenterBrokenTexture.texID ||
			Block[i]->GetTexture() == CenterRightBrokenTexture.texID ||
			Block[i]->GetTexture() == BottomLeftBrokenTexture.texID ||
			Block[i]->GetTexture() == BottomCenterBrokenTexture.texID ||
			Block[i]->GetTexture() == BottomRightBrokenTexture.texID ||
			Block[i]->GetTexture() == LeftHorizontalBrokenTexture.texID ||
			Block[i]->GetTexture() == CenterHorizontalBrokenTexture.texID ||
			Block[i]->GetTexture() == RightHorizontalBrokenTexture.texID ||
			Block[i]->GetTexture() == TopVerticalBrokenTexture.texID ||
			Block[i]->GetTexture() == CenterVerticalBrokenTexture.texID ||
			Block[i]->GetTexture() == BottomVerticalBrokenTexture.texID ||
			Block[i]->GetTexture() == SingleBrokenTexture.texID )
		{
			Block[i]->Breakable = true;
		}
		//cout << Block[i]->GetTexture() << endl;
		if( Block[i]->GetTexture() % 2 == 0 )
		{
			//cout << Block[i]->GetTexture() << Block[i]->GetTexture() % 2 << endl;
			//cout << Block[i]->GetTexture() % 2 << endl;
			Block[i]->Breakable = true;
		}
		Block[i]->SetDamageTexture( EnemyDamageTexture.texID );
		Block[i]->SetExplosionTexture( ExplosionTexture );
		//Block[i]->SetShape( SQUARE );
	}
	//cout << TopLeftTexture.texID << " " << TopLeftBrokenTexture.texID << endl;
	//cout << TopCenterTexture.texID << " " << TopCenterBrokenTexture.texID << endl;
	//cout << TopRightTexture.texID << " " << TopRightBrokenTexture.texID << endl;
	//cout << CenterLeftTexture.texID << " " << CenterLeftBrokenTexture.texID << endl;
	//cout << CenterCenterTexture.texID << " " << CenterCenterBrokenTexture.texID << endl;
	//cout << CenterRightTexture.texID << " " << CenterRightBrokenTexture.texID << endl;
	//cout << BottomLeftTexture.texID << " " << BottomLeftBrokenTexture.texID << endl;
	//cout << BottomCenterTexture.texID << " " << BottomCenterBrokenTexture.texID << endl;
	//cout << BottomRightTexture.texID << " " << BottomRightBrokenTexture.texID << endl;
	//cout << LeftHorizontalTexture.texID << " " << LeftHorizontalBrokenTexture.texID << endl;
	//cout << CenterHorizontalTexture.texID << " " << CenterHorizontalBrokenTexture.texID << endl;
	//cout << RightHorizontalTexture.texID << " " << RightHorizontalBrokenTexture.texID << endl;
	//cout << TopVerticalTexture.texID << " " << TopVerticalBrokenTexture.texID << endl;
	//cout << CenterVerticalTexture.texID << " " << CenterVerticalBrokenTexture.texID << endl;
	//cout << BottomVerticalTexture.texID << " " << BottomVerticalBrokenTexture.texID << endl;
	//cout << SingleTexture.texID << " " << SingleBrokenTexture.texID << endl;



		//int ofst = 9;
		//int ofsty = 9;
		//Polygons[0].NumVectors = 20-1;
		//Polygons[0].AddVector();
		//Polygons[0].Polygon[0] = Vector2d( -14.5f +ofst , 6.5f +ofsty );//-9.99f , -9.991f );
		//Polygons[0].Polygon[1] = Vector2d(  -14.5f+ofst , 5.5f +ofsty);
		//Polygons[0].Polygon[2] = Vector2d( -24.5f +ofst ,  5.5f+ofsty  );
		//Polygons[0].Polygon[3] = Vector2d( -24.5f +ofst ,  -7.5f+ofsty );
		//Polygons[0].Polygon[4] = Vector2d( -13.5f +ofst , -7.5f+ofsty );
		//Polygons[0].Polygon[5] = Vector2d( -13.5f +ofst , -8.5f+ofsty );
		//Polygons[0].Polygon[6] = Vector2d(  -24.5f+ofst , -8.5f+ofsty  );
		//Polygons[0].Polygon[7] = Vector2d( -24.5f +ofst , -24.5f+ofsty );
		//Polygons[0].Polygon[8] = Vector2d( 6.5f   +ofst , -24.5f+ofsty );
		//Polygons[0].Polygon[9] = Vector2d(  6.5f  +ofst , -8.5f+ofsty );
		//Polygons[0].Polygon[10] = Vector2d(  -4.5f+ofst , -8.5f +ofsty );
		//Polygons[0].Polygon[11] = Vector2d( -4.5f +ofst ,  -7.5f+ofsty );
		//Polygons[0].Polygon[12] = Vector2d( 6.5f  +ofst , -7.5f+ofsty );
		//Polygons[0].Polygon[13] = Vector2d(  6.5f +ofst , 5.5f+ofsty );
		//Polygons[0].Polygon[14] = Vector2d(  -3.5f+ofst ,  5.5f+ofsty  );
		//Polygons[0].Polygon[15] = Vector2d(  -3.5f+ofst ,  6.5f+ofsty  );
		//Polygons[0].Polygon[16] = Vector2d(  7.5f +ofst ,  6.5f +ofsty );
		//Polygons[0].Polygon[17] = Vector2d( 7.5f  +ofst ,  -25.5f+ofsty );
		//Polygons[0].Polygon[18] = Vector2d( -25.5f+ofst , -25.5f+ofsty );
		//Polygons[0].Polygon[19] = Vector2d( -25.5f+ofst , 6.5f+ofsty );
		//Polygons[0].SetBoundingBox();
		////Polygons[0].SetInsideOut( true );

		//Polygons[1].NumVectors = 4-1;
		//Polygons[1].AddVector();
		//Polygons[1].Polygon[0] = Vector2d( -19.5f+ofst, -0.5f +ofsty);//-9.99f , -9.991f );
		//Polygons[1].Polygon[1] = Vector2d(  1.5f +ofst, -0.5f +ofsty);
		//Polygons[1].Polygon[2] = Vector2d( 1.5f +ofst,  -1.5f +ofsty );
		//Polygons[1].Polygon[3] = Vector2d( -19.5f+ofst,  -1.5f+ofsty );
		//Polygons[1].SetBoundingBox();
		//
		//Polygons[2].NumVectors = 8-1;
		//Polygons[2].AddVector();
		//Polygons[2].Polygon[0] = Vector2d( -20.5f+ofst , -13.5f +ofsty);
		//Polygons[2].Polygon[1] = Vector2d( -19.5f+ofst , -13.5f+ofsty );
		//Polygons[2].Polygon[2] = Vector2d( -19.5f +ofst, -19.5f+ofsty );
		//Polygons[2].Polygon[3] = Vector2d( -14.5f +ofst, -19.5f+ofsty );
		//Polygons[2].Polygon[4] = Vector2d( -14.5f +ofst, -13.5f +ofsty );
		//Polygons[2].Polygon[5] = Vector2d( -13.5f+ofst,  -13.5f+ofsty );
		//Polygons[2].Polygon[6] = Vector2d( -13.5f +ofst, -20.5f+ofsty );
		//Polygons[2].Polygon[7] = Vector2d( -20.5f +ofst, -20.5f+ofsty );
		//Polygons[2].SetBoundingBox();

		//Polygons[3].NumVectors = 8-1;
		//Polygons[3].AddVector();
		//int ext = 16;
		//Polygons[3].Polygon[0] = Vector2d( -20.5f+ext+ofst , -13.5f+ofsty );
		//Polygons[3].Polygon[1] = Vector2d( -19.5f+ext+ofst , -13.5f+ofsty );
		//Polygons[3].Polygon[2] = Vector2d( -19.5f+ext +ofst, -19.5f+ofsty );
		//Polygons[3].Polygon[3] = Vector2d( -14.5f+ext+ofst , -19.5f+ofsty );
		//Polygons[3].Polygon[4] = Vector2d( -14.5f+ext+ofst , -13.5f +ofsty );
		//Polygons[3].Polygon[5] = Vector2d( -13.5f+ext+ofst ,  -13.5f+ofsty );
		//Polygons[3].Polygon[6] = Vector2d( -13.5f+ext+ofst , -20.5f+ofsty );
		//Polygons[3].Polygon[7] = Vector2d( -20.5f+ext+ofst , -20.5f+ofsty );
		//Polygons[3].SetBoundingBox();

		//Polygons[4].NumVectors = 4-1;
		//Polygons[4].AddVector();
		//Polygons[4].Polygon[0] = Vector2d( -WorldEdge, WorldEdge );//14.5f+ext+ofst , -13.5f +ofsty );
		//Polygons[4].Polygon[1] = Vector2d( -WorldEdge, -WorldEdge );
		//Polygons[4].Polygon[2] = Vector2d( WorldEdge, -WorldEdge );
		//Polygons[4].Polygon[3] = Vector2d( WorldEdge, WorldEdge );
		//Polygons[4].SetBoundingBox();
		//Polygons[4].SetInsideOut( true );

		//Block[10]->SetPos( 7.0f  , 15 );
		//Block[10]->SetOldPos( 7, 15 );
		//Block[2]->SetAlive( true );
		//Block[2]->SetHealth( 1 );
		//Block[2]->SetFaceAngle( 90.0f );
/*		Block[0]->SetPos( -4.0f, 1.8f );
		Block[0]->SetOldPos( Block[0]->GetPosX(), Block[0]->GetPosY() );
		Block[7]->SetPos( 1.0f+6, 1.8f-1 );
		Block[7]->SetOldPos( Block[7]->GetPosX(), Block[7]->GetPosY() );
		Block[8]->SetPos( 1.0f, 1.8f-1 );
		Block[8]->SetOldPos( Block[8]->GetPosX(), Block[8]->GetPosY() );
		Block[9]->SetPos( 1.0f, 1.8f-2 );
		Block[9]->SetOldPos( Block[9]->GetPosX(), Block[9]->GetPosY() );
		Block[10]->SetPos( 1.0f, 1.8f-3 );
		Block[10]->SetOldPos( Block[10]->GetPosX(), Block[10]->GetPosY() );
		Block[11]->SetPos( 1.0f+1, 1.8f-4 );
		Block[11]->SetOldPos( Block[11]->GetPosX(), Block[11]->GetPosY() );*/
		//Block[2]->SetVel( 0.0f, 1.0f );
		//Block[2]->SetSpeed( 0.3f );
		//Block[2]->SetRotateSpeed( 0.0f );
		//Block[2]->SetSize( 3.0f );
		//Block[2]->SetCollisionSize( 3.0f );
		//Block[2]->SetTexture( WallTexture.texID );
		//Block[2]->SetExplosionTexture( ExplosionTexture );
	//for( int i = 0; i < PolyBlock.NumVectors; i++ )
	//{

//polygon 2, the weird shape that's concave and convex
		//Polygons[1].NumVectors = 6-1;
		//Polygons[1].AddVector();
		//Polygons[1].Polygon[0] = Vector2d( 1 , 9 );
		//Polygons[1].Polygon[1] = Vector2d( 5 , 7 );
		//Polygons[1].Polygon[2] = Vector2d( 2 , 5 );
		//Polygons[1].Polygon[3] = Vector2d( 5 , 3 );
		//Polygons[1].Polygon[4] = Vector2d( 1 , 1 );
		//Polygons[1].Polygon[5] = Vector2d( 0 , 5 );
		//Polygons[1].SetBoundingBox();

		//Polygons[1].NumVectors = 6-1;
		//Polygons[1].AddVector();
		//Polygons[1].Polygon[0] = Vector2d(-4.01,-2.01+3);
		//Polygons[1].Polygon[1] = Vector2d(-4,2+3);
		//Polygons[1].Polygon[2] = Vector2d(-2,5+3);
		//Polygons[1].Polygon[3] = Vector2d(4.01,5.01+3);
		//Polygons[1].Polygon[4] = Vector2d(4,-3+3);
		//Polygons[1].Polygon[5] = Vector2d(0,-2+3);
		//Polygons[1].SetBoundingBox();

		//Polygons[1].NumVectors = 4-1;
		//Polygons[1].AddVector();
		//Polygons[1].Polygon[0] = Vector2d( -6.01f , -2.02f );
		//Polygons[1].Polygon[1] = Vector2d( -6     ,  2.01f );
		//Polygons[1].Polygon[2] = Vector2d( -4     ,  2     );
		//Polygons[1].Polygon[3] = Vector2d( -4.01  , -2.01  );

//polygon 1, the bounding square
		//Polygons[0].NumVectors = 4-1;
		//Polygons[0].AddVector();
		//Polygons[0].Polygon[0] = Vector2d( -9.99f , -9.991f );
		//Polygons[0].Polygon[1] = Vector2d(  9.98f , -9.989f );
		//Polygons[0].Polygon[2] = Vector2d(  9.99f ,  9.99f  );
		//Polygons[0].Polygon[3] = Vector2d( -9.991f,  9.989f );
		//Polygons[0].SetBoundingBox();
		//Polygons[0].SetInsideOut( true );

	//	const float PI = 3.14159f;
	//for(int j = 2; j<NumPolygons; j++ )
	//{
	//		int NumSides = 60/2+3;//7;//2.0f*PI/16.0f;
	//		float nextstep = 2.0f*PI/NumSides;
	//		float r = 2;//GetCollisionRadius();
	//		float cx = -7 + 5*(j/2);//GetPosX();
	//		float cy = -6 + 12*(j%2);//GetPosY();
	//		//float ocx = GetOldPosX();
	//		//float ocy = GetOldPosY();

	//	//glBindTexture( GL_TEXTURE_2D, 0 );
	//	//glBegin( GL_LINE_LOOP );
	//	//glColor4f( 0.0f, 1.0f, 0.0f, 1.0f );
	//	Polygons[j].NumVectors = NumSides-1;//int(PI*2/ nextstep)-1;
	//	Polygons[j].AddVector();
	//	//int i=0;
	//	for( int i = 0; i<NumSides; i++ )
	//	//for( float t = 0.0f; t < PI*2; t+= nextstep )
	//	{
	//		float x = r * -cosf( i*nextstep ) + cx;
	//		float y = r * sinf( i*nextstep ) + cy;
	//		Polygons[j].Polygon[i] = Vector2d(x,y);//glVertex2f( x, y );
	//		//i++;
	//	}
	//	Polygons[j].SetBoundingBox();
	//	//cout << "box " << j << " min " << Polygons[j].Min.x << "," << Polygons[j].Min.y << " max " << 
	//	//		Polygons[j].Max.x << "," << Polygons[j].Max.y << endl;
	//}

		//PowerUp.SetGame( this );
		//PowerUp.Load();
		//PowerUp.SetPos( 0 , 4 );
		//PowerUp.SetVel( Vector2d(0,-1) );
		//PowerUp.SetOldPos( PowerUp.GetPosX(), PowerUp.GetPosY()-0.01f );
		//PowerUp.SetSize( PowerUp.GetSize() );

//		CSpecialItem* speed = new CSpecialItem();
		//speed->SetGame( this );
		//speed->Load();
		//speed->SetPos( 1, 8 );
		//speed->SetVel( 0.0f, -1.0f);
		//speed->SetOldPos( speed->GetPosX(), speed->GetPosY()-0.01f );
		//AddItem( speed );
	//}

		//for( int i=1; i<NumPolygons; i++ )
		//{
			//////Polygons[1].NumVectors = 3;
			//////Polygons[1].AddVector();
			//////Polygons[1].Polygon[0] = Vector2d( -7.0f , 8 );// + i*5 , -5.01f );
			//////Polygons[1].Polygon[1] = Vector2d( -5.0f , 6 );//.0f + i*5  , -3.0f );
			//////Polygons[1].Polygon[2] = Vector2d( -7.0f , 4 );//+ i*5  , -5.0f );
			//////Polygons[1].Polygon[3] = Vector2d( -9.0f, 6 );//+ i*5  , -5.0f );

			//////Polygons[2].NumVectors = 3;
			//////Polygons[2].AddVector();
			//////Polygons[2].Polygon[0] = Vector2d( 7,8);//-10.01f + i*5 , -5.01f );
			//////Polygons[2].Polygon[1] = Vector2d( 9,6);//-8.0f + i*5  , -3.0f );
			//////Polygons[2].Polygon[2] = Vector2d( 7,4);//-6.0f + i*5  , -5.0f );
			//////Polygons[2].Polygon[3] = Vector2d( 5,6);//-6.0f + i*5  , -5.0f );

			//////Polygons[3].NumVectors = 3;
			//////Polygons[3].AddVector();
			//////Polygons[3].Polygon[0] = Vector2d( 7,-4);//-10.01f + i*5 , -5.01f );
			//////Polygons[3].Polygon[1] = Vector2d( 9,-6);//-8.0f + i*5  , -3.0f );
			//////Polygons[3].Polygon[2] = Vector2d( 7, -8);//-6.0f + i*5  , -5.0f );
			//////Polygons[3].Polygon[3] = Vector2d( 5, -6);//-6.0f + i*5  , -5.0f );

		//}

}

void CGameApp::UpdateTime()
{
	LastTime    = CurrentTime;
	CurrentTime = glutGet( GLUT_ELAPSED_TIME );
	DeltaTime	= (CurrentTime - LastTime) * 0.001f;
	//if( DeltaTime <= 1.0f/30.0f ) { DeltaTime = 1.0f/30.0f; }
	DeltaTime *= GameSpeed;
	//DeltaTime = 0.009f;

}

void CGameApp::CheckCollision()
{
//	static int mine;
//	static int yours;
	//CEntityMemFn memptr;

	for( int i = 0; i< NumPlayers; i++ )
	{
		EnemyWave->Collision( Player[i] );
	}
	//player collision if friendly fire is on
	//only works with two players for now
	if( FriendlyFire == true && NumPlayers > 1 )
	{
	if( Player[0]->GetAlive() && Player[1]->GetAlive() )
	{
		CPlayer* player1 = Player[0];
		CPlayer* player2 = Player[1];
		//collision between player 1 and player 2
		if( COLLISION( player1 , player2 ) )
		{
			player1->TakeDamage( player2->GetDamage() );
			player2->TakeDamage( player1->GetDamage() );
		}
		//collision between player 1 bullets and player 2
		for( int x = 0; x < player1->PrimaryWeapon->NumBullets; x++ )
		{
			//if player 2 died with a previous bullet, no need to check the others
			if( player2->GetAlive() == false ) { break; }
			for( int y = 0; y < player1->PrimaryWeapon->Spread; y++ )
			{
				if( player2->GetAlive() == false ) { break; }
				if( player1->PrimaryWeapon->Bullets[x][y]->GetAlive() == false ) { continue; }
				if( COLLISION( player1->PrimaryWeapon->Bullets[x][y] , player2 ) )
				{
					player1->PrimaryWeapon->Bullets[x][y]->TakeDamage( player2->GetDamage() );
					player2->TakeDamage( player1->PrimaryWeapon->Bullets[x][y]->GetDamage() );
				}//endif collision between player1 bullet and player2
			}//next bullet in spread
		}//next bullet

		//collision between player 2 bullets and player 1
		for( int x = 0; x < player2->PrimaryWeapon->NumBullets; x++ )
		{
			//if player 2 died with a previous bullet, no need to check the others
			if( player1->GetAlive() == false ) { break; }
			for( int y = 0; y < player2->PrimaryWeapon->Spread; y++ )
			{
				if( player1->GetAlive() == false ) { break; }
				if( player2->PrimaryWeapon->Bullets[x][y]->GetAlive() == false ) { continue; }
				if( COLLISION( player2->PrimaryWeapon->Bullets[x][y] , player1 ) )
				{
					player2->PrimaryWeapon->Bullets[x][y]->TakeDamage( player1->GetDamage() );
					player1->TakeDamage( player2->PrimaryWeapon->Bullets[x][y]->GetDamage() );
				}//endif collision between player1 bullet and player2

	#if 1			
				//collision between player 2 bullets and player 1 bullets
				if( player1->GetAlive() )
				{
					for( int xp = 0; xp < player1->PrimaryWeapon->NumBullets; xp++ )
					{
						for( int yp = 0; yp < player1->PrimaryWeapon->Spread; yp++ )
						{
		//						//if( Player->PrimaryWeapon->Bullets[xp][yp]->GetAlive() == false ) { continue; }
		//						//if( Enemy[i]->PrimaryWeapon->Bullets[x][y]->GetAlive() == false ) { continue; }
		//						//mine = Enemy[i]->PrimaryWeapon->Bullets[x][y]->GetShape();
		//						//yours = Player->PrimaryWeapon->Bullets[xp][yp]->GetShape();
		//						//CEntity* EnemyBullet = Enemy[i]->PrimaryWeapon->Bullets[x][y];
							if( COLLISION( player2->PrimaryWeapon->Bullets[x][y] , player1->PrimaryWeapon->Bullets[xp][yp] )  )
		//						//if( CALL_FNP( EnemyBullet , EnemyBullet->Collision[mine][yours] )(Player->PrimaryWeapon->Bullets[xp][yp]) )
		//						//if( Enemy[i]->PrimaryWeapon->Bullets[x][y]->CircleCircleCollision(Player->PrimaryWeapon->Bullets[xp][yp]) )
							{
								player2->PrimaryWeapon->Bullets[x][y]->TakeDamage(player1->PrimaryWeapon->Bullets[xp][yp]->GetDamage());
								player1->PrimaryWeapon->Bullets[xp][yp]->TakeDamage(player2->PrimaryWeapon->Bullets[x][y]->GetDamage());
							}
						}//next player bullet spread
					}//next player bullet row
				}
	#endif



			}//next bullet in spread
		}//next bullet

		//collision between player 1 bullets and player 2 bullets






	//	for( int i = 0; i < NumEnemies; i++ )
	//	{
	//		if( COLLISION( player , Enemy[i] ) )
	//		{ player->TakeDamage(Enemy[i]->GetDamage()); Enemy[i]->TakeDamage(player->GetDamage()); }
	//		


	//		//check collision for the enemies bullets and the player/player bullets
	//		//if the enemy is dead, it and its bullets can't collide with anything
	//		//if( Enemy[i]->GetAlive() == false ) { continue; }
	//		for( int x = 0; x < Enemy[i]->PrimaryWeapon->NumBullets; x++ )
	//		{
	//			for( int y = 0; y < Enemy[i]->PrimaryWeapon->Spread; y++ )
	//			{
	//				//if( Enemy[i]->PrimaryWeapon->Bullets[x][y]->GetAlive() == false ) { continue; }
	//				//if( Player->GetAlive() == false ) { continue; }
	//				//mine = Enemy[i]->PrimaryWeapon->Bullets[x][y]->GetShape();
	//				//yours = Player->GetShape();
	//				//CEntity* EnemyBullet = Enemy[i]->PrimaryWeapon->Bullets[x][y];
	//				if( COLLISION( Enemy[i]->PrimaryWeapon->Bullets[x][y] , player ) )
	//				//if( CALL_FNP( EnemyBullet, EnemyBullet->Collision[mine][yours] )(Player) )
	//				//if( Enemy[i]->PrimaryWeapon->Bullets[x][y]->CircleCircleCollision(Player) )
	//				//if( Enemy[i]->PrimaryWeapon->Bullets[x][y]->Collision[(Enemy[i]->PrimaryWeapon->Bullets[x][y]->GetShape())][(Player->GetShape())](Player) )
	//				{
	//					Enemy[i]->PrimaryWeapon->Bullets[x][y]->Kill();
	//					player->TakeDamage(Enemy[i]->PrimaryWeapon->Bullets[x][y]->GetDamage());
	//				}
	//				//check for collision with the players bullets and the enemies bullets
	//#if 1			
	//				for( int xp = 0; xp < player->PrimaryWeapon->NumBullets; xp++ )
	//				{
	//					for( int yp = 0; yp < player->PrimaryWeapon->Spread; yp++ )
	//					{
	//						//if( Player->PrimaryWeapon->Bullets[xp][yp]->GetAlive() == false ) { continue; }
	//						//if( Enemy[i]->PrimaryWeapon->Bullets[x][y]->GetAlive() == false ) { continue; }
	//						//mine = Enemy[i]->PrimaryWeapon->Bullets[x][y]->GetShape();
	//						//yours = Player->PrimaryWeapon->Bullets[xp][yp]->GetShape();
	//						//CEntity* EnemyBullet = Enemy[i]->PrimaryWeapon->Bullets[x][y];
	//						if( COLLISION( Enemy[i]->PrimaryWeapon->Bullets[x][y] , player->PrimaryWeapon->Bullets[xp][yp] )  )
	//						//if( CALL_FNP( EnemyBullet , EnemyBullet->Collision[mine][yours] )(Player->PrimaryWeapon->Bullets[xp][yp]) )
	//						//if( Enemy[i]->PrimaryWeapon->Bullets[x][y]->CircleCircleCollision(Player->PrimaryWeapon->Bullets[xp][yp]) )
	//						{
	//							Enemy[i]->PrimaryWeapon->Bullets[x][y]->TakeDamage(player->PrimaryWeapon->Bullets[xp][yp]->GetDamage());
	//							player->PrimaryWeapon->Bullets[xp][yp]->TakeDamage(Enemy[i]->PrimaryWeapon->Bullets[x][y]->GetDamage());
	//						}
	//					}//next player bullet spread
	//				}//next player bullet row
	//#endif

	//			}//next bullet in the enemy's weapon spread
	//		}//next bullet in the enemy's weapon array


	//	}//next enemy
	}
	}
}


void CGameApp::SortLevelBlocks( CEntity* target )
{
	//calculate the distance between the player and each block
	for( int i = 0; i < NumBlocks; i++ )
	{
		Block[i]->SetDistanceToPlayer( Block[i]->GetDistanceTo( target ) );
	}

	//sort the blocks based on the distance to the player via insertion sort
	for( int i = 1; i < NumBlocks; i++ )
	{
		int j=i;
		while( j>0 && (Block[j]->GetDistanceToPlayer() < Block[j-1]->GetDistanceToPlayer()) )
		{
			CEntity* temp = Block[j];
			Block[j] = Block[j-1];
			Block[j-1] = temp;
			j -= 1;
		}
	}

}

void CGameApp::CreateNewWave()
{
	delete EnemyWave;
	EnemyWave = NULL;
//	int randomwave = rand()%3;
	//switch( randomwave)
	//{
	//case 0:
	//	EnemyWave = new CrsfWave();
	//	break;
	//case 1:
	//	EnemyWave = new CSpaceInvadersWave();
	//	break;
	//default:
		EnemyWave = new CWave();
	//	break;
	//}
	//EnemyWave = new CrsfWave();//new CSpaceInvadersWave();//MAX_ENEMIES);
	EnemyWave->SetGame( this );
	EnemyWave->Initialize();
}

void CGameApp::AddItem( CSpecialItem* itemToAdd )
{
	if( itemToAdd == NULL ) { return; }
	PowerUps.push_back( itemToAdd );
	itemToAdd->SetIsItemAttached( false );
}

void CGameApp::DetachItem( CSpecialItem* itemToDetach )
{
	if( itemToDetach )
	{
		list< CSpecialItem* >::iterator i;
		for( i = PowerUps.begin(); i != PowerUps.end(); i++ )
		{
			if( (*i) == itemToDetach )
			{
				(*i) = NULL;
			}
		}
	}
}

void CGameApp::RemoveItem( CSpecialItem* itemToRemove )
{
	//probably shouldn't use this function, just let update remove the item
	delete itemToRemove;
	PowerUps.remove( itemToRemove );
}

void CGameApp::RemoveAllItems()
{
	list< CSpecialItem* >::iterator i;
	for( i = PowerUps.begin(); i != PowerUps.end(); i++ )
	{
		delete (*i);
		
	}
	PowerUps.clear();
}


void CGameApp::UpdateItems()
{
	list< CSpecialItem* >::iterator i;
	for( i = PowerUps.begin(); i != PowerUps.end(); i++ )
	{
		if( (*i) )
		{
			(*i)->Update();
		}
	}
	PowerUps.remove_if( IsItemUpdating );
}

void CGameApp::AttachItemToHost( CSpecialItem * item, CEntity* host )
{
	//if the host attaches the item, this is redundant and probably dangerous
	//item->AttachToHost( host );

	//not implemented yet
	//host->AttachItem( item );
}

void CGameApp::LoadLevel()
{
//NumBl
NumBlocks = 917;
Block[0]->SetPos(0, 146);
Block[0]->SetSize(1);
Block[0]->SetTexture(TopLeftTexture.texID);
Block[1]->SetPos(1, 146);
Block[1]->SetSize(1);
Block[1]->SetTexture(TopCenterTexture.texID);
Block[2]->SetPos(2, 146);
Block[2]->SetSize(1);
Block[2]->SetTexture(TopCenterTexture.texID);
Block[3]->SetPos(3, 146);
Block[3]->SetSize(1);
Block[3]->SetTexture(TopCenterTexture.texID);
Block[4]->SetPos(4, 146);
Block[4]->SetSize(1);
Block[4]->SetTexture(TopCenterTexture.texID);
Block[5]->SetPos(5, 146);
Block[5]->SetSize(1);
Block[5]->SetTexture(TopCenterTexture.texID);
Block[6]->SetPos(6, 146);
Block[6]->SetSize(1);
Block[6]->SetTexture(TopCenterTexture.texID);
Block[7]->SetPos(7, 146);
Block[7]->SetSize(1);
Block[7]->SetTexture(TopCenterTexture.texID);
Block[8]->SetPos(8, 146);
Block[8]->SetSize(1);
Block[8]->SetTexture(TopCenterTexture.texID);
Block[9]->SetPos(9, 146);
Block[9]->SetSize(1);
Block[9]->SetTexture(TopCenterTexture.texID);
Block[10]->SetPos(10, 146);
Block[10]->SetSize(1);
Block[10]->SetTexture(TopCenterTexture.texID);
Block[11]->SetPos(11, 146);
Block[11]->SetSize(1);
Block[11]->SetTexture(TopCenterTexture.texID);
Block[12]->SetPos(12, 146);
Block[12]->SetSize(1);
Block[12]->SetTexture(TopCenterTexture.texID);
Block[13]->SetPos(13, 146);
Block[13]->SetSize(1);
Block[13]->SetTexture(TopCenterTexture.texID);
Block[14]->SetPos(14, 146);
Block[14]->SetSize(1);
Block[14]->SetTexture(TopCenterTexture.texID);
Block[15]->SetPos(15, 146);
Block[15]->SetSize(1);
Block[15]->SetTexture(TopCenterTexture.texID);
Block[16]->SetPos(16, 146);
Block[16]->SetSize(1);
Block[16]->SetTexture(TopCenterTexture.texID);
Block[17]->SetPos(17, 146);
Block[17]->SetSize(1);
Block[17]->SetTexture(TopCenterTexture.texID);
Block[18]->SetPos(18, 146);
Block[18]->SetSize(1);
Block[18]->SetTexture(TopCenterTexture.texID);
Block[19]->SetPos(19, 146);
Block[19]->SetSize(1);
Block[19]->SetTexture(TopCenterTexture.texID);
Block[20]->SetPos(20, 146);
Block[20]->SetSize(1);
Block[20]->SetTexture(TopCenterTexture.texID);
Block[21]->SetPos(21, 146);
Block[21]->SetSize(1);
Block[21]->SetTexture(TopCenterTexture.texID);
Block[22]->SetPos(22, 146);
Block[22]->SetSize(1);
Block[22]->SetTexture(TopCenterTexture.texID);
Block[23]->SetPos(23, 146);
Block[23]->SetSize(1);
Block[23]->SetTexture(TopCenterTexture.texID);
Block[24]->SetPos(24, 146);
Block[24]->SetSize(1);
Block[24]->SetTexture(TopCenterTexture.texID);
Block[25]->SetPos(25, 146);
Block[25]->SetSize(1);
Block[25]->SetTexture(TopCenterTexture.texID);
Block[26]->SetPos(26, 146);
Block[26]->SetSize(1);
Block[26]->SetTexture(TopCenterTexture.texID);
Block[27]->SetPos(27, 146);
Block[27]->SetSize(1);
Block[27]->SetTexture(TopCenterTexture.texID);
Block[28]->SetPos(28, 146);
Block[28]->SetSize(1);
Block[28]->SetTexture(TopCenterTexture.texID);
Block[29]->SetPos(29, 146);
Block[29]->SetSize(1);
Block[29]->SetTexture(TopCenterTexture.texID);
Block[30]->SetPos(30, 146);
Block[30]->SetSize(1);
Block[30]->SetTexture(TopCenterTexture.texID);
Block[31]->SetPos(31, 146);
Block[31]->SetSize(1);
Block[31]->SetTexture(TopCenterTexture.texID);
Block[32]->SetPos(32, 146);
Block[32]->SetSize(1);
Block[32]->SetTexture(TopCenterTexture.texID);
Block[33]->SetPos(33, 146);
Block[33]->SetSize(1);
Block[33]->SetTexture(TopCenterTexture.texID);
Block[34]->SetPos(34, 146);
Block[34]->SetSize(1);
Block[34]->SetTexture(TopCenterTexture.texID);
Block[35]->SetPos(35, 146);
Block[35]->SetSize(1);
Block[35]->SetTexture(TopCenterTexture.texID);
Block[36]->SetPos(36, 146);
Block[36]->SetSize(1);
Block[36]->SetTexture(TopCenterTexture.texID);
Block[37]->SetPos(37, 146);
Block[37]->SetSize(1);
Block[37]->SetTexture(TopCenterTexture.texID);
Block[38]->SetPos(38, 146);
Block[38]->SetSize(1);
Block[38]->SetTexture(TopCenterTexture.texID);
Block[39]->SetPos(39, 146);
Block[39]->SetSize(1);
Block[39]->SetTexture(TopCenterTexture.texID);
Block[40]->SetPos(40, 146);
Block[40]->SetSize(1);
Block[40]->SetTexture(TopCenterTexture.texID);
Block[41]->SetPos(41, 146);
Block[41]->SetSize(1);
Block[41]->SetTexture(TopCenterTexture.texID);
Block[42]->SetPos(42, 146);
Block[42]->SetSize(1);
Block[42]->SetTexture(TopCenterTexture.texID);
Block[43]->SetPos(43, 146);
Block[43]->SetSize(1);
Block[43]->SetTexture(TopCenterTexture.texID);
Block[44]->SetPos(44, 146);
Block[44]->SetSize(1);
Block[44]->SetTexture(TopCenterTexture.texID);
Block[45]->SetPos(45, 146);
Block[45]->SetSize(1);
Block[45]->SetTexture(TopCenterTexture.texID);
Block[46]->SetPos(46, 146);
Block[46]->SetSize(1);
Block[46]->SetTexture(TopCenterTexture.texID);
Block[47]->SetPos(47, 146);
Block[47]->SetSize(1);
Block[47]->SetTexture(TopCenterTexture.texID);
Block[48]->SetPos(48, 146);
Block[48]->SetSize(1);
Block[48]->SetTexture(TopCenterTexture.texID);
Block[49]->SetPos(49, 146);
Block[49]->SetSize(1);
Block[49]->SetTexture(TopCenterTexture.texID);
Block[50]->SetPos(50, 146);
Block[50]->SetSize(1);
Block[50]->SetTexture(TopCenterTexture.texID);
Block[51]->SetPos(51, 146);
Block[51]->SetSize(1);
Block[51]->SetTexture(TopCenterTexture.texID);
Block[52]->SetPos(52, 146);
Block[52]->SetSize(1);
Block[52]->SetTexture(TopCenterTexture.texID);
Block[53]->SetPos(53, 146);
Block[53]->SetSize(1);
Block[53]->SetTexture(TopCenterTexture.texID);
Block[54]->SetPos(54, 146);
Block[54]->SetSize(1);
Block[54]->SetTexture(TopCenterTexture.texID);
Block[55]->SetPos(55, 146);
Block[55]->SetSize(1);
Block[55]->SetTexture(TopCenterTexture.texID);
Block[56]->SetPos(56, 146);
Block[56]->SetSize(1);
Block[56]->SetTexture(TopCenterTexture.texID);
Block[57]->SetPos(57, 146);
Block[57]->SetSize(1);
Block[57]->SetTexture(TopCenterTexture.texID);
Block[58]->SetPos(58, 146);
Block[58]->SetSize(1);
Block[58]->SetTexture(TopCenterTexture.texID);
Block[59]->SetPos(59, 146);
Block[59]->SetSize(1);
Block[59]->SetTexture(TopCenterTexture.texID);
Block[60]->SetPos(0, 145);
Block[60]->SetSize(1);
Block[60]->SetTexture(CenterLeftTexture.texID);
Block[61]->SetPos(1, 145);
Block[61]->SetSize(1);
Block[61]->SetTexture(CenterCenterTexture.texID);
Block[62]->SetPos(2, 145);
Block[62]->SetSize(1);
Block[62]->SetTexture(CenterCenterTexture.texID);
Block[63]->SetPos(3, 145);
Block[63]->SetSize(1);
Block[63]->SetTexture(CenterCenterTexture.texID);
Block[64]->SetPos(4, 145);
Block[64]->SetSize(1);
Block[64]->SetTexture(CenterCenterTexture.texID);
Block[65]->SetPos(5, 145);
Block[65]->SetSize(1);
Block[65]->SetTexture(CenterCenterTexture.texID);
Block[66]->SetPos(6, 145);
Block[66]->SetSize(1);
Block[66]->SetTexture(CenterCenterTexture.texID);
Block[67]->SetPos(7, 145);
Block[67]->SetSize(1);
Block[67]->SetTexture(CenterCenterTexture.texID);
Block[68]->SetPos(8, 145);
Block[68]->SetSize(1);
Block[68]->SetTexture(CenterCenterTexture.texID);
Block[69]->SetPos(9, 145);
Block[69]->SetSize(1);
Block[69]->SetTexture(CenterCenterTexture.texID);
Block[70]->SetPos(10, 145);
Block[70]->SetSize(1);
Block[70]->SetTexture(CenterCenterTexture.texID);
Block[71]->SetPos(11, 145);
Block[71]->SetSize(1);
Block[71]->SetTexture(CenterCenterTexture.texID);
Block[72]->SetPos(12, 145);
Block[72]->SetSize(1);
Block[72]->SetTexture(CenterCenterTexture.texID);
Block[73]->SetPos(13, 145);
Block[73]->SetSize(1);
Block[73]->SetTexture(CenterCenterTexture.texID);
Block[74]->SetPos(14, 145);
Block[74]->SetSize(1);
Block[74]->SetTexture(CenterCenterTexture.texID);
Block[75]->SetPos(15, 145);
Block[75]->SetSize(1);
Block[75]->SetTexture(CenterCenterTexture.texID);
Block[76]->SetPos(16, 145);
Block[76]->SetSize(1);
Block[76]->SetTexture(CenterCenterTexture.texID);
Block[77]->SetPos(17, 145);
Block[77]->SetSize(1);
Block[77]->SetTexture(CenterCenterTexture.texID);
Block[78]->SetPos(18, 145);
Block[78]->SetSize(1);
Block[78]->SetTexture(CenterCenterTexture.texID);
Block[79]->SetPos(19, 145);
Block[79]->SetSize(1);
Block[79]->SetTexture(CenterCenterTexture.texID);
Block[80]->SetPos(20, 145);
Block[80]->SetSize(1);
Block[80]->SetTexture(CenterCenterTexture.texID);
Block[81]->SetPos(21, 145);
Block[81]->SetSize(1);
Block[81]->SetTexture(CenterCenterTexture.texID);
Block[82]->SetPos(22, 145);
Block[82]->SetSize(1);
Block[82]->SetTexture(CenterCenterTexture.texID);
Block[83]->SetPos(23, 145);
Block[83]->SetSize(1);
Block[83]->SetTexture(CenterCenterTexture.texID);
Block[84]->SetPos(24, 145);
Block[84]->SetSize(1);
Block[84]->SetTexture(CenterCenterTexture.texID);
Block[85]->SetPos(25, 145);
Block[85]->SetSize(1);
Block[85]->SetTexture(CenterCenterTexture.texID);
Block[86]->SetPos(26, 145);
Block[86]->SetSize(1);
Block[86]->SetTexture(CenterCenterTexture.texID);
Block[87]->SetPos(27, 145);
Block[87]->SetSize(1);
Block[87]->SetTexture(CenterCenterTexture.texID);
Block[88]->SetPos(28, 145);
Block[88]->SetSize(1);
Block[88]->SetTexture(CenterCenterTexture.texID);
Block[89]->SetPos(29, 145);
Block[89]->SetSize(1);
Block[89]->SetTexture(CenterCenterTexture.texID);
Block[90]->SetPos(30, 145);
Block[90]->SetSize(1);
Block[90]->SetTexture(CenterCenterTexture.texID);
Block[91]->SetPos(31, 145);
Block[91]->SetSize(1);
Block[91]->SetTexture(CenterCenterTexture.texID);
Block[92]->SetPos(32, 145);
Block[92]->SetSize(1);
Block[92]->SetTexture(CenterCenterTexture.texID);
Block[93]->SetPos(33, 145);
Block[93]->SetSize(1);
Block[93]->SetTexture(CenterCenterTexture.texID);
Block[94]->SetPos(34, 145);
Block[94]->SetSize(1);
Block[94]->SetTexture(CenterCenterTexture.texID);
Block[95]->SetPos(35, 145);
Block[95]->SetSize(1);
Block[95]->SetTexture(CenterCenterTexture.texID);
Block[96]->SetPos(36, 145);
Block[96]->SetSize(1);
Block[96]->SetTexture(CenterCenterTexture.texID);
Block[97]->SetPos(37, 145);
Block[97]->SetSize(1);
Block[97]->SetTexture(CenterCenterTexture.texID);
Block[98]->SetPos(38, 145);
Block[98]->SetSize(1);
Block[98]->SetTexture(CenterCenterTexture.texID);
Block[99]->SetPos(39, 145);
Block[99]->SetSize(1);
Block[99]->SetTexture(CenterCenterTexture.texID);
Block[100]->SetPos(40, 145);
Block[100]->SetSize(1);
Block[100]->SetTexture(CenterCenterTexture.texID);
Block[101]->SetPos(41, 145);
Block[101]->SetSize(1);
Block[101]->SetTexture(CenterCenterTexture.texID);
Block[102]->SetPos(42, 145);
Block[102]->SetSize(1);
Block[102]->SetTexture(CenterCenterTexture.texID);
Block[103]->SetPos(43, 145);
Block[103]->SetSize(1);
Block[103]->SetTexture(CenterCenterTexture.texID);
Block[104]->SetPos(44, 145);
Block[104]->SetSize(1);
Block[104]->SetTexture(CenterCenterTexture.texID);
Block[105]->SetPos(45, 145);
Block[105]->SetSize(1);
Block[105]->SetTexture(CenterCenterTexture.texID);
Block[106]->SetPos(46, 145);
Block[106]->SetSize(1);
Block[106]->SetTexture(CenterCenterTexture.texID);
Block[107]->SetPos(47, 145);
Block[107]->SetSize(1);
Block[107]->SetTexture(CenterCenterTexture.texID);
Block[108]->SetPos(48, 145);
Block[108]->SetSize(1);
Block[108]->SetTexture(CenterCenterTexture.texID);
Block[109]->SetPos(49, 145);
Block[109]->SetSize(1);
Block[109]->SetTexture(CenterCenterTexture.texID);
Block[110]->SetPos(50, 145);
Block[110]->SetSize(1);
Block[110]->SetTexture(CenterCenterTexture.texID);
Block[111]->SetPos(51, 145);
Block[111]->SetSize(1);
Block[111]->SetTexture(CenterCenterTexture.texID);
Block[112]->SetPos(52, 145);
Block[112]->SetSize(1);
Block[112]->SetTexture(CenterCenterTexture.texID);
Block[113]->SetPos(53, 145);
Block[113]->SetSize(1);
Block[113]->SetTexture(CenterCenterTexture.texID);
Block[114]->SetPos(54, 145);
Block[114]->SetSize(1);
Block[114]->SetTexture(CenterCenterTexture.texID);
Block[115]->SetPos(55, 145);
Block[115]->SetSize(1);
Block[115]->SetTexture(CenterCenterTexture.texID);
Block[116]->SetPos(56, 145);
Block[116]->SetSize(1);
Block[116]->SetTexture(CenterCenterTexture.texID);
Block[117]->SetPos(57, 145);
Block[117]->SetSize(1);
Block[117]->SetTexture(CenterCenterTexture.texID);
Block[118]->SetPos(58, 145);
Block[118]->SetSize(1);
Block[118]->SetTexture(CenterCenterTexture.texID);
Block[119]->SetPos(59, 145);
Block[119]->SetSize(1);
Block[119]->SetTexture(CenterCenterTexture.texID);
Block[120]->SetPos(0, 144);
Block[120]->SetSize(1);
Block[120]->SetTexture(CenterLeftTexture.texID);
Block[121]->SetPos(1, 144);
Block[121]->SetSize(1);
Block[121]->SetTexture(CenterCenterTexture.texID);
Block[122]->SetPos(2, 144);
Block[122]->SetSize(1);
Block[122]->SetTexture(CenterCenterTexture.texID);
Block[123]->SetPos(3, 144);
Block[123]->SetSize(1);
Block[123]->SetTexture(CenterCenterTexture.texID);
Block[124]->SetPos(4, 144);
Block[124]->SetSize(1);
Block[124]->SetTexture(CenterCenterTexture.texID);
Block[125]->SetPos(5, 144);
Block[125]->SetSize(1);
Block[125]->SetTexture(CenterCenterTexture.texID);
Block[126]->SetPos(6, 144);
Block[126]->SetSize(1);
Block[126]->SetTexture(CenterCenterTexture.texID);
Block[127]->SetPos(7, 144);
Block[127]->SetSize(1);
Block[127]->SetTexture(CenterCenterTexture.texID);
Block[128]->SetPos(8, 144);
Block[128]->SetSize(1);
Block[128]->SetTexture(CenterCenterTexture.texID);
Block[129]->SetPos(9, 144);
Block[129]->SetSize(1);
Block[129]->SetTexture(CenterCenterTexture.texID);
Block[130]->SetPos(10, 144);
Block[130]->SetSize(1);
Block[130]->SetTexture(CenterCenterTexture.texID);
Block[131]->SetPos(11, 144);
Block[131]->SetSize(1);
Block[131]->SetTexture(CenterCenterTexture.texID);
Block[132]->SetPos(12, 144);
Block[132]->SetSize(1);
Block[132]->SetTexture(CenterCenterTexture.texID);
Block[133]->SetPos(13, 144);
Block[133]->SetSize(1);
Block[133]->SetTexture(CenterCenterTexture.texID);
Block[134]->SetPos(14, 144);
Block[134]->SetSize(1);
Block[134]->SetTexture(CenterCenterTexture.texID);
Block[135]->SetPos(15, 144);
Block[135]->SetSize(1);
Block[135]->SetTexture(CenterCenterTexture.texID);
Block[136]->SetPos(16, 144);
Block[136]->SetSize(1);
Block[136]->SetTexture(CenterCenterTexture.texID);
Block[137]->SetPos(17, 144);
Block[137]->SetSize(1);
Block[137]->SetTexture(CenterCenterTexture.texID);
Block[138]->SetPos(18, 144);
Block[138]->SetSize(1);
Block[138]->SetTexture(CenterCenterTexture.texID);
Block[139]->SetPos(19, 144);
Block[139]->SetSize(1);
Block[139]->SetTexture(CenterCenterTexture.texID);
Block[140]->SetPos(20, 144);
Block[140]->SetSize(1);
Block[140]->SetTexture(CenterCenterTexture.texID);
Block[141]->SetPos(21, 144);
Block[141]->SetSize(1);
Block[141]->SetTexture(CenterCenterTexture.texID);
Block[142]->SetPos(22, 144);
Block[142]->SetSize(1);
Block[142]->SetTexture(CenterCenterTexture.texID);
Block[143]->SetPos(23, 144);
Block[143]->SetSize(1);
Block[143]->SetTexture(CenterCenterTexture.texID);
Block[144]->SetPos(24, 144);
Block[144]->SetSize(1);
Block[144]->SetTexture(CenterCenterTexture.texID);
Block[145]->SetPos(25, 144);
Block[145]->SetSize(1);
Block[145]->SetTexture(CenterCenterTexture.texID);
Block[146]->SetPos(26, 144);
Block[146]->SetSize(1);
Block[146]->SetTexture(CenterCenterTexture.texID);
Block[147]->SetPos(27, 144);
Block[147]->SetSize(1);
Block[147]->SetTexture(CenterCenterTexture.texID);
Block[148]->SetPos(28, 144);
Block[148]->SetSize(1);
Block[148]->SetTexture(CenterCenterTexture.texID);
Block[149]->SetPos(29, 144);
Block[149]->SetSize(1);
Block[149]->SetTexture(CenterCenterTexture.texID);
Block[150]->SetPos(30, 144);
Block[150]->SetSize(1);
Block[150]->SetTexture(CenterCenterTexture.texID);
Block[151]->SetPos(31, 144);
Block[151]->SetSize(1);
Block[151]->SetTexture(CenterCenterTexture.texID);
Block[152]->SetPos(32, 144);
Block[152]->SetSize(1);
Block[152]->SetTexture(CenterCenterTexture.texID);
Block[153]->SetPos(33, 144);
Block[153]->SetSize(1);
Block[153]->SetTexture(CenterCenterTexture.texID);
Block[154]->SetPos(34, 144);
Block[154]->SetSize(1);
Block[154]->SetTexture(CenterCenterTexture.texID);
Block[155]->SetPos(35, 144);
Block[155]->SetSize(1);
Block[155]->SetTexture(CenterCenterTexture.texID);
Block[156]->SetPos(36, 144);
Block[156]->SetSize(1);
Block[156]->SetTexture(CenterCenterTexture.texID);
Block[157]->SetPos(37, 144);
Block[157]->SetSize(1);
Block[157]->SetTexture(CenterCenterTexture.texID);
Block[158]->SetPos(38, 144);
Block[158]->SetSize(1);
Block[158]->SetTexture(CenterCenterTexture.texID);
Block[159]->SetPos(39, 144);
Block[159]->SetSize(1);
Block[159]->SetTexture(CenterCenterTexture.texID);
Block[160]->SetPos(40, 144);
Block[160]->SetSize(1);
Block[160]->SetTexture(CenterCenterTexture.texID);
Block[161]->SetPos(41, 144);
Block[161]->SetSize(1);
Block[161]->SetTexture(CenterCenterTexture.texID);
Block[162]->SetPos(42, 144);
Block[162]->SetSize(1);
Block[162]->SetTexture(CenterCenterTexture.texID);
Block[163]->SetPos(43, 144);
Block[163]->SetSize(1);
Block[163]->SetTexture(CenterCenterTexture.texID);
Block[164]->SetPos(44, 144);
Block[164]->SetSize(1);
Block[164]->SetTexture(CenterCenterTexture.texID);
Block[165]->SetPos(45, 144);
Block[165]->SetSize(1);
Block[165]->SetTexture(CenterCenterTexture.texID);
Block[166]->SetPos(46, 144);
Block[166]->SetSize(1);
Block[166]->SetTexture(CenterCenterTexture.texID);
Block[167]->SetPos(47, 144);
Block[167]->SetSize(1);
Block[167]->SetTexture(CenterCenterTexture.texID);
Block[168]->SetPos(48, 144);
Block[168]->SetSize(1);
Block[168]->SetTexture(CenterCenterTexture.texID);
Block[169]->SetPos(49, 144);
Block[169]->SetSize(1);
Block[169]->SetTexture(CenterCenterTexture.texID);
Block[170]->SetPos(50, 144);
Block[170]->SetSize(1);
Block[170]->SetTexture(CenterCenterTexture.texID);
Block[171]->SetPos(51, 144);
Block[171]->SetSize(1);
Block[171]->SetTexture(CenterCenterTexture.texID);
Block[172]->SetPos(52, 144);
Block[172]->SetSize(1);
Block[172]->SetTexture(CenterCenterTexture.texID);
Block[173]->SetPos(53, 144);
Block[173]->SetSize(1);
Block[173]->SetTexture(CenterCenterTexture.texID);
Block[174]->SetPos(54, 144);
Block[174]->SetSize(1);
Block[174]->SetTexture(CenterCenterTexture.texID);
Block[175]->SetPos(55, 144);
Block[175]->SetSize(1);
Block[175]->SetTexture(CenterCenterTexture.texID);
Block[176]->SetPos(56, 144);
Block[176]->SetSize(1);
Block[176]->SetTexture(CenterCenterTexture.texID);
Block[177]->SetPos(57, 144);
Block[177]->SetSize(1);
Block[177]->SetTexture(CenterCenterTexture.texID);
Block[178]->SetPos(58, 144);
Block[178]->SetSize(1);
Block[178]->SetTexture(CenterCenterTexture.texID);
Block[179]->SetPos(59, 144);
Block[179]->SetSize(1);
Block[179]->SetTexture(CenterCenterTexture.texID);
Block[180]->SetPos(0, 111);
Block[180]->SetSize(1);
Block[180]->SetTexture(TopLeftTexture.texID);
Block[181]->SetPos(1, 111);
Block[181]->SetSize(1);
Block[181]->SetTexture(TopCenterTexture.texID);
Block[182]->SetPos(2, 111);
Block[182]->SetSize(1);
Block[182]->SetTexture(TopCenterTexture.texID);
Block[183]->SetPos(3, 111);
Block[183]->SetSize(1);
Block[183]->SetTexture(TopCenterTexture.texID);
Block[184]->SetPos(4, 111);
Block[184]->SetSize(1);
Block[184]->SetTexture(TopCenterTexture.texID);
Block[185]->SetPos(5, 111);
Block[185]->SetSize(1);
Block[185]->SetTexture(TopCenterTexture.texID);
Block[186]->SetPos(6, 111);
Block[186]->SetSize(1);
Block[186]->SetTexture(TopCenterTexture.texID);
Block[187]->SetPos(7, 111);
Block[187]->SetSize(1);
Block[187]->SetTexture(TopCenterTexture.texID);
Block[188]->SetPos(8, 111);
Block[188]->SetSize(1);
Block[188]->SetTexture(TopCenterTexture.texID);
Block[189]->SetPos(9, 111);
Block[189]->SetSize(1);
Block[189]->SetTexture(TopCenterTexture.texID);
Block[190]->SetPos(10, 111);
Block[190]->SetSize(1);
Block[190]->SetTexture(TopCenterTexture.texID);
Block[191]->SetPos(11, 111);
Block[191]->SetSize(1);
Block[191]->SetTexture(TopCenterTexture.texID);
Block[192]->SetPos(12, 111);
Block[192]->SetSize(1);
Block[192]->SetTexture(TopCenterTexture.texID);
Block[193]->SetPos(13, 111);
Block[193]->SetSize(1);
Block[193]->SetTexture(TopCenterTexture.texID);
Block[194]->SetPos(14, 111);
Block[194]->SetSize(1);
Block[194]->SetTexture(TopCenterTexture.texID);
Block[195]->SetPos(15, 111);
Block[195]->SetSize(1);
Block[195]->SetTexture(TopCenterTexture.texID);
Block[196]->SetPos(16, 111);
Block[196]->SetSize(1);
Block[196]->SetTexture(TopCenterTexture.texID);
Block[197]->SetPos(17, 111);
Block[197]->SetSize(1);
Block[197]->SetTexture(TopCenterTexture.texID);
Block[198]->SetPos(18, 111);
Block[198]->SetSize(1);
Block[198]->SetTexture(TopCenterTexture.texID);
Block[199]->SetPos(19, 111);
Block[199]->SetSize(1);
Block[199]->SetTexture(TopCenterTexture.texID);
Block[200]->SetPos(20, 111);
Block[200]->SetSize(1);
Block[200]->SetTexture(TopRightTexture.texID);
Block[201]->SetPos(27, 111);
Block[201]->SetSize(1);
Block[201]->SetTexture(TopLeftTexture.texID);
Block[202]->SetPos(28, 111);
Block[202]->SetSize(1);
Block[202]->SetTexture(TopCenterTexture.texID);
Block[203]->SetPos(29, 111);
Block[203]->SetSize(1);
Block[203]->SetTexture(TopCenterTexture.texID);
Block[204]->SetPos(30, 111);
Block[204]->SetSize(1);
Block[204]->SetTexture(TopRightTexture.texID);
Block[205]->SetPos(36, 111);
Block[205]->SetSize(1);
Block[205]->SetTexture(TopLeftTexture.texID);
Block[206]->SetPos(37, 111);
Block[206]->SetSize(1);
Block[206]->SetTexture(TopCenterTexture.texID);
Block[207]->SetPos(38, 111);
Block[207]->SetSize(1);
Block[207]->SetTexture(TopCenterTexture.texID);
Block[208]->SetPos(39, 111);
Block[208]->SetSize(1);
Block[208]->SetTexture(TopCenterTexture.texID);
Block[209]->SetPos(40, 111);
Block[209]->SetSize(1);
Block[209]->SetTexture(TopCenterTexture.texID);
Block[210]->SetPos(41, 111);
Block[210]->SetSize(1);
Block[210]->SetTexture(TopCenterTexture.texID);
Block[211]->SetPos(42, 111);
Block[211]->SetSize(1);
Block[211]->SetTexture(TopCenterTexture.texID);
Block[212]->SetPos(43, 111);
Block[212]->SetSize(1);
Block[212]->SetTexture(TopCenterTexture.texID);
Block[213]->SetPos(44, 111);
Block[213]->SetSize(1);
Block[213]->SetTexture(TopCenterTexture.texID);
Block[214]->SetPos(45, 111);
Block[214]->SetSize(1);
Block[214]->SetTexture(TopCenterTexture.texID);
Block[215]->SetPos(46, 111);
Block[215]->SetSize(1);
Block[215]->SetTexture(TopCenterTexture.texID);
Block[216]->SetPos(47, 111);
Block[216]->SetSize(1);
Block[216]->SetTexture(TopCenterTexture.texID);
Block[217]->SetPos(48, 111);
Block[217]->SetSize(1);
Block[217]->SetTexture(TopCenterTexture.texID);
Block[218]->SetPos(49, 111);
Block[218]->SetSize(1);
Block[218]->SetTexture(TopCenterTexture.texID);
Block[219]->SetPos(50, 111);
Block[219]->SetSize(1);
Block[219]->SetTexture(TopCenterTexture.texID);
Block[220]->SetPos(51, 111);
Block[220]->SetSize(1);
Block[220]->SetTexture(TopCenterTexture.texID);
Block[221]->SetPos(52, 111);
Block[221]->SetSize(1);
Block[221]->SetTexture(TopCenterTexture.texID);
Block[222]->SetPos(53, 111);
Block[222]->SetSize(1);
Block[222]->SetTexture(TopCenterTexture.texID);
Block[223]->SetPos(54, 111);
Block[223]->SetSize(1);
Block[223]->SetTexture(TopCenterTexture.texID);
Block[224]->SetPos(55, 111);
Block[224]->SetSize(1);
Block[224]->SetTexture(TopCenterTexture.texID);
Block[225]->SetPos(56, 111);
Block[225]->SetSize(1);
Block[225]->SetTexture(TopCenterTexture.texID);
Block[226]->SetPos(57, 111);
Block[226]->SetSize(1);
Block[226]->SetTexture(TopCenterTexture.texID);
Block[227]->SetPos(58, 111);
Block[227]->SetSize(1);
Block[227]->SetTexture(TopCenterTexture.texID);
Block[228]->SetPos(59, 111);
Block[228]->SetSize(1);
Block[228]->SetTexture(TopRightTexture.texID);
Block[229]->SetPos(0, 110);
Block[229]->SetSize(1);
Block[229]->SetTexture(CenterLeftTexture.texID);
Block[230]->SetPos(1, 110);
Block[230]->SetSize(1);
Block[230]->SetTexture(CenterCenterTexture.texID);
Block[231]->SetPos(2, 110);
Block[231]->SetSize(1);
Block[231]->SetTexture(CenterCenterTexture.texID);
Block[232]->SetPos(3, 110);
Block[232]->SetSize(1);
Block[232]->SetTexture(CenterCenterTexture.texID);
Block[233]->SetPos(4, 110);
Block[233]->SetSize(1);
Block[233]->SetTexture(CenterCenterTexture.texID);
Block[234]->SetPos(5, 110);
Block[234]->SetSize(1);
Block[234]->SetTexture(CenterCenterTexture.texID);
Block[235]->SetPos(6, 110);
Block[235]->SetSize(1);
Block[235]->SetTexture(CenterCenterTexture.texID);
Block[236]->SetPos(7, 110);
Block[236]->SetSize(1);
Block[236]->SetTexture(CenterCenterTexture.texID);
Block[237]->SetPos(8, 110);
Block[237]->SetSize(1);
Block[237]->SetTexture(CenterCenterTexture.texID);
Block[238]->SetPos(9, 110);
Block[238]->SetSize(1);
Block[238]->SetTexture(CenterCenterTexture.texID);
Block[239]->SetPos(10, 110);
Block[239]->SetSize(1);
Block[239]->SetTexture(CenterCenterTexture.texID);
Block[240]->SetPos(11, 110);
Block[240]->SetSize(1);
Block[240]->SetTexture(CenterCenterTexture.texID);
Block[241]->SetPos(12, 110);
Block[241]->SetSize(1);
Block[241]->SetTexture(CenterCenterTexture.texID);
Block[242]->SetPos(13, 110);
Block[242]->SetSize(1);
Block[242]->SetTexture(CenterCenterTexture.texID);
Block[243]->SetPos(14, 110);
Block[243]->SetSize(1);
Block[243]->SetTexture(CenterCenterTexture.texID);
Block[244]->SetPos(15, 110);
Block[244]->SetSize(1);
Block[244]->SetTexture(CenterCenterTexture.texID);
Block[245]->SetPos(16, 110);
Block[245]->SetSize(1);
Block[245]->SetTexture(CenterCenterTexture.texID);
Block[246]->SetPos(17, 110);
Block[246]->SetSize(1);
Block[246]->SetTexture(CenterCenterTexture.texID);
Block[247]->SetPos(18, 110);
Block[247]->SetSize(1);
Block[247]->SetTexture(CenterCenterTexture.texID);
Block[248]->SetPos(19, 110);
Block[248]->SetSize(1);
Block[248]->SetTexture(CenterCenterTexture.texID);
Block[249]->SetPos(20, 110);
Block[249]->SetSize(1);
Block[249]->SetTexture(CenterRightTexture.texID);
Block[250]->SetPos(27, 110);
Block[250]->SetSize(1);
Block[250]->SetTexture(CenterLeftTexture.texID);
Block[251]->SetPos(28, 110);
Block[251]->SetSize(1);
Block[251]->SetTexture(CenterCenterTexture.texID);
Block[252]->SetPos(29, 110);
Block[252]->SetSize(1);
Block[252]->SetTexture(CenterCenterTexture.texID);
Block[253]->SetPos(30, 110);
Block[253]->SetSize(1);
Block[253]->SetTexture(CenterRightTexture.texID);
Block[254]->SetPos(36, 110);
Block[254]->SetSize(1);
Block[254]->SetTexture(CenterLeftTexture.texID);
Block[255]->SetPos(37, 110);
Block[255]->SetSize(1);
Block[255]->SetTexture(CenterCenterTexture.texID);
Block[256]->SetPos(38, 110);
Block[256]->SetSize(1);
Block[256]->SetTexture(CenterCenterTexture.texID);
Block[257]->SetPos(39, 110);
Block[257]->SetSize(1);
Block[257]->SetTexture(CenterCenterTexture.texID);
Block[258]->SetPos(40, 110);
Block[258]->SetSize(1);
Block[258]->SetTexture(CenterCenterTexture.texID);
Block[259]->SetPos(41, 110);
Block[259]->SetSize(1);
Block[259]->SetTexture(CenterCenterTexture.texID);
Block[260]->SetPos(42, 110);
Block[260]->SetSize(1);
Block[260]->SetTexture(CenterCenterTexture.texID);
Block[261]->SetPos(43, 110);
Block[261]->SetSize(1);
Block[261]->SetTexture(CenterCenterTexture.texID);
Block[262]->SetPos(44, 110);
Block[262]->SetSize(1);
Block[262]->SetTexture(CenterCenterTexture.texID);
Block[263]->SetPos(45, 110);
Block[263]->SetSize(1);
Block[263]->SetTexture(CenterCenterTexture.texID);
Block[264]->SetPos(46, 110);
Block[264]->SetSize(1);
Block[264]->SetTexture(CenterCenterTexture.texID);
Block[265]->SetPos(47, 110);
Block[265]->SetSize(1);
Block[265]->SetTexture(CenterCenterTexture.texID);
Block[266]->SetPos(48, 110);
Block[266]->SetSize(1);
Block[266]->SetTexture(CenterCenterTexture.texID);
Block[267]->SetPos(49, 110);
Block[267]->SetSize(1);
Block[267]->SetTexture(CenterCenterTexture.texID);
Block[268]->SetPos(50, 110);
Block[268]->SetSize(1);
Block[268]->SetTexture(CenterCenterTexture.texID);
Block[269]->SetPos(51, 110);
Block[269]->SetSize(1);
Block[269]->SetTexture(CenterCenterTexture.texID);
Block[270]->SetPos(52, 110);
Block[270]->SetSize(1);
Block[270]->SetTexture(CenterCenterTexture.texID);
Block[271]->SetPos(53, 110);
Block[271]->SetSize(1);
Block[271]->SetTexture(CenterCenterTexture.texID);
Block[272]->SetPos(54, 110);
Block[272]->SetSize(1);
Block[272]->SetTexture(CenterCenterTexture.texID);
Block[273]->SetPos(55, 110);
Block[273]->SetSize(1);
Block[273]->SetTexture(CenterCenterTexture.texID);
Block[274]->SetPos(56, 110);
Block[274]->SetSize(1);
Block[274]->SetTexture(CenterCenterTexture.texID);
Block[275]->SetPos(57, 110);
Block[275]->SetSize(1);
Block[275]->SetTexture(CenterCenterTexture.texID);
Block[276]->SetPos(58, 110);
Block[276]->SetSize(1);
Block[276]->SetTexture(CenterCenterTexture.texID);
Block[277]->SetPos(59, 110);
Block[277]->SetSize(1);
Block[277]->SetTexture(CenterRightTexture.texID);
Block[278]->SetPos(0, 109);
Block[278]->SetSize(1);
Block[278]->SetTexture(CenterLeftTexture.texID);
Block[279]->SetPos(1, 109);
Block[279]->SetSize(1);
Block[279]->SetTexture(CenterCenterTexture.texID);
Block[280]->SetPos(2, 109);
Block[280]->SetSize(1);
Block[280]->SetTexture(CenterCenterTexture.texID);
Block[281]->SetPos(3, 109);
Block[281]->SetSize(1);
Block[281]->SetTexture(CenterCenterTexture.texID);
Block[282]->SetPos(4, 109);
Block[282]->SetSize(1);
Block[282]->SetTexture(CenterCenterTexture.texID);
Block[283]->SetPos(5, 109);
Block[283]->SetSize(1);
Block[283]->SetTexture(CenterCenterTexture.texID);
Block[284]->SetPos(6, 109);
Block[284]->SetSize(1);
Block[284]->SetTexture(CenterCenterTexture.texID);
Block[285]->SetPos(7, 109);
Block[285]->SetSize(1);
Block[285]->SetTexture(CenterCenterTexture.texID);
Block[286]->SetPos(8, 109);
Block[286]->SetSize(1);
Block[286]->SetTexture(CenterCenterTexture.texID);
Block[287]->SetPos(9, 109);
Block[287]->SetSize(1);
Block[287]->SetTexture(CenterCenterTexture.texID);
Block[288]->SetPos(10, 109);
Block[288]->SetSize(1);
Block[288]->SetTexture(CenterCenterTexture.texID);
Block[289]->SetPos(11, 109);
Block[289]->SetSize(1);
Block[289]->SetTexture(CenterCenterTexture.texID);
Block[290]->SetPos(12, 109);
Block[290]->SetSize(1);
Block[290]->SetTexture(CenterCenterTexture.texID);
Block[291]->SetPos(13, 109);
Block[291]->SetSize(1);
Block[291]->SetTexture(CenterCenterTexture.texID);
Block[292]->SetPos(14, 109);
Block[292]->SetSize(1);
Block[292]->SetTexture(CenterCenterTexture.texID);
Block[293]->SetPos(15, 109);
Block[293]->SetSize(1);
Block[293]->SetTexture(CenterCenterTexture.texID);
Block[294]->SetPos(16, 109);
Block[294]->SetSize(1);
Block[294]->SetTexture(CenterCenterTexture.texID);
Block[295]->SetPos(17, 109);
Block[295]->SetSize(1);
Block[295]->SetTexture(CenterCenterTexture.texID);
Block[296]->SetPos(18, 109);
Block[296]->SetSize(1);
Block[296]->SetTexture(CenterCenterTexture.texID);
Block[297]->SetPos(19, 109);
Block[297]->SetSize(1);
Block[297]->SetTexture(CenterCenterTexture.texID);
Block[298]->SetPos(20, 109);
Block[298]->SetSize(1);
Block[298]->SetTexture(CenterRightTexture.texID);
Block[299]->SetPos(27, 109);
Block[299]->SetSize(1);
Block[299]->SetTexture(CenterLeftTexture.texID);
Block[300]->SetPos(28, 109);
Block[300]->SetSize(1);
Block[300]->SetTexture(CenterCenterTexture.texID);
Block[301]->SetPos(29, 109);
Block[301]->SetSize(1);
Block[301]->SetTexture(CenterCenterTexture.texID);
Block[302]->SetPos(30, 109);
Block[302]->SetSize(1);
Block[302]->SetTexture(CenterRightTexture.texID);
Block[303]->SetPos(36, 109);
Block[303]->SetSize(1);
Block[303]->SetTexture(CenterLeftTexture.texID);
Block[304]->SetPos(37, 109);
Block[304]->SetSize(1);
Block[304]->SetTexture(CenterCenterTexture.texID);
Block[305]->SetPos(38, 109);
Block[305]->SetSize(1);
Block[305]->SetTexture(CenterCenterTexture.texID);
Block[306]->SetPos(39, 109);
Block[306]->SetSize(1);
Block[306]->SetTexture(CenterCenterTexture.texID);
Block[307]->SetPos(40, 109);
Block[307]->SetSize(1);
Block[307]->SetTexture(CenterCenterTexture.texID);
Block[308]->SetPos(41, 109);
Block[308]->SetSize(1);
Block[308]->SetTexture(CenterCenterTexture.texID);
Block[309]->SetPos(42, 109);
Block[309]->SetSize(1);
Block[309]->SetTexture(CenterCenterTexture.texID);
Block[310]->SetPos(43, 109);
Block[310]->SetSize(1);
Block[310]->SetTexture(CenterCenterTexture.texID);
Block[311]->SetPos(44, 109);
Block[311]->SetSize(1);
Block[311]->SetTexture(CenterCenterTexture.texID);
Block[312]->SetPos(45, 109);
Block[312]->SetSize(1);
Block[312]->SetTexture(CenterCenterTexture.texID);
Block[313]->SetPos(46, 109);
Block[313]->SetSize(1);
Block[313]->SetTexture(CenterCenterTexture.texID);
Block[314]->SetPos(47, 109);
Block[314]->SetSize(1);
Block[314]->SetTexture(CenterCenterTexture.texID);
Block[315]->SetPos(48, 109);
Block[315]->SetSize(1);
Block[315]->SetTexture(CenterCenterTexture.texID);
Block[316]->SetPos(49, 109);
Block[316]->SetSize(1);
Block[316]->SetTexture(CenterCenterTexture.texID);
Block[317]->SetPos(50, 109);
Block[317]->SetSize(1);
Block[317]->SetTexture(CenterCenterTexture.texID);
Block[318]->SetPos(51, 109);
Block[318]->SetSize(1);
Block[318]->SetTexture(CenterCenterTexture.texID);
Block[319]->SetPos(52, 109);
Block[319]->SetSize(1);
Block[319]->SetTexture(CenterCenterTexture.texID);
Block[320]->SetPos(53, 109);
Block[320]->SetSize(1);
Block[320]->SetTexture(CenterCenterTexture.texID);
Block[321]->SetPos(54, 109);
Block[321]->SetSize(1);
Block[321]->SetTexture(CenterCenterTexture.texID);
Block[322]->SetPos(55, 109);
Block[322]->SetSize(1);
Block[322]->SetTexture(CenterCenterTexture.texID);
Block[323]->SetPos(56, 109);
Block[323]->SetSize(1);
Block[323]->SetTexture(CenterCenterTexture.texID);
Block[324]->SetPos(57, 109);
Block[324]->SetSize(1);
Block[324]->SetTexture(CenterCenterTexture.texID);
Block[325]->SetPos(58, 109);
Block[325]->SetSize(1);
Block[325]->SetTexture(CenterCenterTexture.texID);
Block[326]->SetPos(59, 109);
Block[326]->SetSize(1);
Block[326]->SetTexture(CenterRightTexture.texID);
Block[327]->SetPos(37, 108);
Block[327]->SetSize(1);
Block[327]->SetTexture(TopVerticalBrokenTexture.texID);
Block[328]->SetPos(37, 107);
Block[328]->SetSize(1);
Block[328]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[329]->SetPos(37, 106);
Block[329]->SetSize(1);
Block[329]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[330]->SetPos(37, 105);
Block[330]->SetSize(1);
Block[330]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[331]->SetPos(25, 104);
Block[331]->SetSize(1);
Block[331]->SetTexture(TopLeftTexture.texID);
Block[332]->SetPos(26, 104);
Block[332]->SetSize(1);
Block[332]->SetTexture(TopRightTexture.texID);
Block[333]->SetPos(37, 104);
Block[333]->SetSize(1);
Block[333]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[334]->SetPos(25, 103);
Block[334]->SetSize(1);
Block[334]->SetTexture(BottomLeftTexture.texID);
Block[335]->SetPos(26, 103);
Block[335]->SetSize(1);
Block[335]->SetTexture(BottomRightTexture.texID);
Block[336]->SetPos(37, 103);
Block[336]->SetSize(1);
Block[336]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[337]->SetPos(25, 102);
Block[337]->SetSize(1);
Block[337]->SetTexture(TopVerticalTexture.texID);
Block[338]->SetPos(36, 102);
Block[338]->SetSize(1);
Block[338]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[339]->SetPos(25, 101);
Block[339]->SetSize(1);
Block[339]->SetTexture(CenterVerticalTexture.texID);
Block[340]->SetPos(36, 101);
Block[340]->SetSize(1);
Block[340]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[341]->SetPos(7, 100);
Block[341]->SetSize(1);
Block[341]->SetTexture(TopVerticalTexture.texID);
Block[342]->SetPos(15, 100);
Block[342]->SetSize(1);
Block[342]->SetTexture(TopVerticalTexture.texID);
Block[343]->SetPos(25, 100);
Block[343]->SetSize(1);
Block[343]->SetTexture(BottomVerticalTexture.texID);
Block[344]->SetPos(36, 100);
Block[344]->SetSize(1);
Block[344]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[345]->SetPos(7, 99);
Block[345]->SetSize(1);
Block[345]->SetTexture(CenterVerticalTexture.texID);
Block[346]->SetPos(15, 99);
Block[346]->SetSize(1);
Block[346]->SetTexture(CenterVerticalTexture.texID);
Block[347]->SetPos(23, 99);
Block[347]->SetSize(1);
Block[347]->SetTexture(TopLeftTexture.texID);
Block[348]->SetPos(24, 99);
Block[348]->SetSize(1);
Block[348]->SetTexture(TopCenterTexture.texID);
Block[349]->SetPos(25, 99);
Block[349]->SetSize(1);
Block[349]->SetTexture(TopCenterTexture.texID);
Block[350]->SetPos(26, 99);
Block[350]->SetSize(1);
Block[350]->SetTexture(TopCenterTexture.texID);
Block[351]->SetPos(27, 99);
Block[351]->SetSize(1);
Block[351]->SetTexture(TopRightTexture.texID);
Block[352]->SetPos(33, 99);
Block[352]->SetSize(1);
Block[352]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[353]->SetPos(7, 98);
Block[353]->SetSize(1);
Block[353]->SetTexture(CenterVerticalTexture.texID);
Block[354]->SetPos(15, 98);
Block[354]->SetSize(1);
Block[354]->SetTexture(CenterVerticalTexture.texID);
Block[355]->SetPos(23, 98);
Block[355]->SetSize(1);
Block[355]->SetTexture(BottomLeftTexture.texID);
Block[356]->SetPos(24, 98);
Block[356]->SetSize(1);
Block[356]->SetTexture(BottomCenterTexture.texID);
Block[357]->SetPos(25, 98);
Block[357]->SetSize(1);
Block[357]->SetTexture(BottomCenterTexture.texID);
Block[358]->SetPos(26, 98);
Block[358]->SetSize(1);
Block[358]->SetTexture(BottomCenterTexture.texID);
Block[359]->SetPos(27, 98);
Block[359]->SetSize(1);
Block[359]->SetTexture(BottomRightTexture.texID);
Block[360]->SetPos(33, 98);
Block[360]->SetSize(1);
Block[360]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[361]->SetPos(7, 97);
Block[361]->SetSize(1);
Block[361]->SetTexture(CenterVerticalTexture.texID);
Block[362]->SetPos(15, 97);
Block[362]->SetSize(1);
Block[362]->SetTexture(CenterVerticalTexture.texID);
Block[363]->SetPos(25, 97);
Block[363]->SetSize(1);
Block[363]->SetTexture(TopVerticalTexture.texID);
Block[364]->SetPos(36, 97);
Block[364]->SetSize(1);
Block[364]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[365]->SetPos(7, 96);
Block[365]->SetSize(1);
Block[365]->SetTexture(CenterVerticalTexture.texID);
Block[366]->SetPos(15, 96);
Block[366]->SetSize(1);
Block[366]->SetTexture(CenterVerticalTexture.texID);
Block[367]->SetPos(25, 96);
Block[367]->SetSize(1);
Block[367]->SetTexture(CenterVerticalTexture.texID);
Block[368]->SetPos(36, 96);
Block[368]->SetSize(1);
Block[368]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[369]->SetPos(7, 95);
Block[369]->SetSize(1);
Block[369]->SetTexture(CenterVerticalTexture.texID);
Block[370]->SetPos(15, 95);
Block[370]->SetSize(1);
Block[370]->SetTexture(CenterVerticalTexture.texID);
Block[371]->SetPos(25, 95);
Block[371]->SetSize(1);
Block[371]->SetTexture(CenterVerticalTexture.texID);
Block[372]->SetPos(36, 95);
Block[372]->SetSize(1);
Block[372]->SetTexture(CenterVerticalBrokenTexture.texID);
Block[373]->SetPos(7, 94);
Block[373]->SetSize(1);
Block[373]->SetTexture(BottomVerticalTexture.texID);
Block[374]->SetPos(15, 94);
Block[374]->SetSize(1);
Block[374]->SetTexture(BottomVerticalTexture.texID);
Block[375]->SetPos(25, 94);
Block[375]->SetSize(1);
Block[375]->SetTexture(BottomVerticalTexture.texID);
Block[376]->SetPos(36, 94);
Block[376]->SetSize(1);
Block[376]->SetTexture(BottomVerticalBrokenTexture.texID);
Block[377]->SetPos(0, 93);
Block[377]->SetSize(1);
Block[377]->SetTexture(TopCenterTexture.texID);
Block[378]->SetPos(1, 93);
Block[378]->SetSize(1);
Block[378]->SetTexture(TopCenterTexture.texID);
Block[379]->SetPos(2, 93);
Block[379]->SetSize(1);
Block[379]->SetTexture(TopCenterTexture.texID);
Block[380]->SetPos(3, 93);
Block[380]->SetSize(1);
Block[380]->SetTexture(TopCenterTexture.texID);
Block[381]->SetPos(4, 93);
Block[381]->SetSize(1);
Block[381]->SetTexture(TopCenterTexture.texID);
Block[382]->SetPos(5, 93);
Block[382]->SetSize(1);
Block[382]->SetTexture(TopCenterTexture.texID);
Block[383]->SetPos(6, 93);
Block[383]->SetSize(1);
Block[383]->SetTexture(TopCenterTexture.texID);
Block[384]->SetPos(7, 93);
Block[384]->SetSize(1);
Block[384]->SetTexture(TopCenterTexture.texID);
Block[385]->SetPos(8, 93);
Block[385]->SetSize(1);
Block[385]->SetTexture(TopCenterTexture.texID);
Block[386]->SetPos(9, 93);
Block[386]->SetSize(1);
Block[386]->SetTexture(TopCenterTexture.texID);
Block[387]->SetPos(10, 93);
Block[387]->SetSize(1);
Block[387]->SetTexture(TopCenterTexture.texID);
Block[388]->SetPos(11, 93);
Block[388]->SetSize(1);
Block[388]->SetTexture(TopCenterTexture.texID);
Block[389]->SetPos(12, 93);
Block[389]->SetSize(1);
Block[389]->SetTexture(TopCenterTexture.texID);
Block[390]->SetPos(13, 93);
Block[390]->SetSize(1);
Block[390]->SetTexture(TopCenterTexture.texID);
Block[391]->SetPos(14, 93);
Block[391]->SetSize(1);
Block[391]->SetTexture(TopCenterTexture.texID);
Block[392]->SetPos(15, 93);
Block[392]->SetSize(1);
Block[392]->SetTexture(TopCenterTexture.texID);
Block[393]->SetPos(16, 93);
Block[393]->SetSize(1);
Block[393]->SetTexture(TopCenterTexture.texID);
Block[394]->SetPos(17, 93);
Block[394]->SetSize(1);
Block[394]->SetTexture(TopCenterTexture.texID);
Block[395]->SetPos(18, 93);
Block[395]->SetSize(1);
Block[395]->SetTexture(TopCenterTexture.texID);
Block[396]->SetPos(19, 93);
Block[396]->SetSize(1);
Block[396]->SetTexture(TopCenterTexture.texID);
Block[397]->SetPos(20, 93);
Block[397]->SetSize(1);
Block[397]->SetTexture(TopCenterTexture.texID);
Block[398]->SetPos(21, 93);
Block[398]->SetSize(1);
Block[398]->SetTexture(TopCenterTexture.texID);
Block[399]->SetPos(22, 93);
Block[399]->SetSize(1);
Block[399]->SetTexture(TopCenterTexture.texID);
Block[400]->SetPos(23, 93);
Block[400]->SetSize(1);
Block[400]->SetTexture(TopCenterTexture.texID);
Block[401]->SetPos(24, 93);
Block[401]->SetSize(1);
Block[401]->SetTexture(TopCenterTexture.texID);
Block[402]->SetPos(25, 93);
Block[402]->SetSize(1);
Block[402]->SetTexture(TopCenterTexture.texID);
Block[403]->SetPos(26, 93);
Block[403]->SetSize(1);
Block[403]->SetTexture(TopCenterTexture.texID);
Block[404]->SetPos(27, 93);
Block[404]->SetSize(1);
Block[404]->SetTexture(TopCenterTexture.texID);
Block[405]->SetPos(28, 93);
Block[405]->SetSize(1);
Block[405]->SetTexture(TopCenterTexture.texID);
Block[406]->SetPos(29, 93);
Block[406]->SetSize(1);
Block[406]->SetTexture(TopCenterTexture.texID);
Block[407]->SetPos(30, 93);
Block[407]->SetSize(1);
Block[407]->SetTexture(TopCenterTexture.texID);
Block[408]->SetPos(31, 93);
Block[408]->SetSize(1);
Block[408]->SetTexture(TopCenterTexture.texID);
Block[409]->SetPos(32, 93);
Block[409]->SetSize(1);
Block[409]->SetTexture(TopCenterTexture.texID);
Block[410]->SetPos(33, 93);
Block[410]->SetSize(1);
Block[410]->SetTexture(TopCenterTexture.texID);
Block[411]->SetPos(34, 93);
Block[411]->SetSize(1);
Block[411]->SetTexture(TopCenterTexture.texID);
Block[412]->SetPos(35, 93);
Block[412]->SetSize(1);
Block[412]->SetTexture(TopCenterTexture.texID);
Block[413]->SetPos(36, 93);
Block[413]->SetSize(1);
Block[413]->SetTexture(TopCenterTexture.texID);
Block[414]->SetPos(37, 93);
Block[414]->SetSize(1);
Block[414]->SetTexture(TopCenterTexture.texID);
Block[415]->SetPos(38, 93);
Block[415]->SetSize(1);
Block[415]->SetTexture(TopCenterTexture.texID);
Block[416]->SetPos(39, 93);
Block[416]->SetSize(1);
Block[416]->SetTexture(TopCenterTexture.texID);
Block[417]->SetPos(40, 93);
Block[417]->SetSize(1);
Block[417]->SetTexture(TopCenterTexture.texID);
Block[418]->SetPos(41, 93);
Block[418]->SetSize(1);
Block[418]->SetTexture(TopCenterTexture.texID);
Block[419]->SetPos(42, 93);
Block[419]->SetSize(1);
Block[419]->SetTexture(TopCenterTexture.texID);
Block[420]->SetPos(43, 93);
Block[420]->SetSize(1);
Block[420]->SetTexture(TopCenterTexture.texID);
Block[421]->SetPos(44, 93);
Block[421]->SetSize(1);
Block[421]->SetTexture(TopCenterTexture.texID);
Block[422]->SetPos(45, 93);
Block[422]->SetSize(1);
Block[422]->SetTexture(TopCenterTexture.texID);
Block[423]->SetPos(46, 93);
Block[423]->SetSize(1);
Block[423]->SetTexture(TopCenterTexture.texID);
Block[424]->SetPos(47, 93);
Block[424]->SetSize(1);
Block[424]->SetTexture(TopCenterTexture.texID);
Block[425]->SetPos(48, 93);
Block[425]->SetSize(1);
Block[425]->SetTexture(TopCenterTexture.texID);
Block[426]->SetPos(49, 93);
Block[426]->SetSize(1);
Block[426]->SetTexture(TopCenterTexture.texID);
Block[427]->SetPos(50, 93);
Block[427]->SetSize(1);
Block[427]->SetTexture(TopCenterTexture.texID);
Block[428]->SetPos(51, 93);
Block[428]->SetSize(1);
Block[428]->SetTexture(TopCenterTexture.texID);
Block[429]->SetPos(52, 93);
Block[429]->SetSize(1);
Block[429]->SetTexture(TopCenterTexture.texID);
Block[430]->SetPos(53, 93);
Block[430]->SetSize(1);
Block[430]->SetTexture(TopCenterTexture.texID);
Block[431]->SetPos(54, 93);
Block[431]->SetSize(1);
Block[431]->SetTexture(TopCenterTexture.texID);
Block[432]->SetPos(55, 93);
Block[432]->SetSize(1);
Block[432]->SetTexture(TopCenterTexture.texID);
Block[433]->SetPos(56, 93);
Block[433]->SetSize(1);
Block[433]->SetTexture(TopCenterTexture.texID);
Block[434]->SetPos(57, 93);
Block[434]->SetSize(1);
Block[434]->SetTexture(TopCenterTexture.texID);
Block[435]->SetPos(58, 93);
Block[435]->SetSize(1);
Block[435]->SetTexture(TopCenterTexture.texID);
Block[436]->SetPos(59, 93);
Block[436]->SetSize(1);
Block[436]->SetTexture(TopRightTexture.texID);
Block[437]->SetPos(0, 92);
Block[437]->SetSize(1);
Block[437]->SetTexture(CenterCenterTexture.texID);
Block[438]->SetPos(1, 92);
Block[438]->SetSize(1);
Block[438]->SetTexture(CenterCenterTexture.texID);
Block[439]->SetPos(2, 92);
Block[439]->SetSize(1);
Block[439]->SetTexture(CenterCenterTexture.texID);
Block[440]->SetPos(3, 92);
Block[440]->SetSize(1);
Block[440]->SetTexture(CenterCenterTexture.texID);
Block[441]->SetPos(4, 92);
Block[441]->SetSize(1);
Block[441]->SetTexture(CenterCenterTexture.texID);
Block[442]->SetPos(5, 92);
Block[442]->SetSize(1);
Block[442]->SetTexture(CenterCenterTexture.texID);
Block[443]->SetPos(6, 92);
Block[443]->SetSize(1);
Block[443]->SetTexture(CenterCenterTexture.texID);
Block[444]->SetPos(7, 92);
Block[444]->SetSize(1);
Block[444]->SetTexture(CenterCenterTexture.texID);
Block[445]->SetPos(8, 92);
Block[445]->SetSize(1);
Block[445]->SetTexture(CenterCenterTexture.texID);
Block[446]->SetPos(9, 92);
Block[446]->SetSize(1);
Block[446]->SetTexture(CenterCenterTexture.texID);
Block[447]->SetPos(10, 92);
Block[447]->SetSize(1);
Block[447]->SetTexture(CenterCenterTexture.texID);
Block[448]->SetPos(11, 92);
Block[448]->SetSize(1);
Block[448]->SetTexture(CenterCenterTexture.texID);
Block[449]->SetPos(12, 92);
Block[449]->SetSize(1);
Block[449]->SetTexture(CenterCenterTexture.texID);
Block[450]->SetPos(13, 92);
Block[450]->SetSize(1);
Block[450]->SetTexture(CenterCenterTexture.texID);
Block[451]->SetPos(14, 92);
Block[451]->SetSize(1);
Block[451]->SetTexture(CenterCenterTexture.texID);
Block[452]->SetPos(15, 92);
Block[452]->SetSize(1);
Block[452]->SetTexture(CenterCenterTexture.texID);
Block[453]->SetPos(16, 92);
Block[453]->SetSize(1);
Block[453]->SetTexture(CenterCenterTexture.texID);
Block[454]->SetPos(17, 92);
Block[454]->SetSize(1);
Block[454]->SetTexture(CenterCenterTexture.texID);
Block[455]->SetPos(18, 92);
Block[455]->SetSize(1);
Block[455]->SetTexture(CenterCenterTexture.texID);
Block[456]->SetPos(19, 92);
Block[456]->SetSize(1);
Block[456]->SetTexture(CenterCenterTexture.texID);
Block[457]->SetPos(20, 92);
Block[457]->SetSize(1);
Block[457]->SetTexture(CenterCenterTexture.texID);
Block[458]->SetPos(21, 92);
Block[458]->SetSize(1);
Block[458]->SetTexture(CenterCenterTexture.texID);
Block[459]->SetPos(22, 92);
Block[459]->SetSize(1);
Block[459]->SetTexture(CenterCenterTexture.texID);
Block[460]->SetPos(23, 92);
Block[460]->SetSize(1);
Block[460]->SetTexture(CenterCenterTexture.texID);
Block[461]->SetPos(24, 92);
Block[461]->SetSize(1);
Block[461]->SetTexture(CenterCenterTexture.texID);
Block[462]->SetPos(25, 92);
Block[462]->SetSize(1);
Block[462]->SetTexture(CenterCenterTexture.texID);
Block[463]->SetPos(26, 92);
Block[463]->SetSize(1);
Block[463]->SetTexture(CenterCenterTexture.texID);
Block[464]->SetPos(27, 92);
Block[464]->SetSize(1);
Block[464]->SetTexture(CenterCenterTexture.texID);
Block[465]->SetPos(28, 92);
Block[465]->SetSize(1);
Block[465]->SetTexture(CenterCenterTexture.texID);
Block[466]->SetPos(29, 92);
Block[466]->SetSize(1);
Block[466]->SetTexture(CenterCenterTexture.texID);
Block[467]->SetPos(30, 92);
Block[467]->SetSize(1);
Block[467]->SetTexture(CenterCenterTexture.texID);
Block[468]->SetPos(31, 92);
Block[468]->SetSize(1);
Block[468]->SetTexture(CenterCenterTexture.texID);
Block[469]->SetPos(32, 92);
Block[469]->SetSize(1);
Block[469]->SetTexture(CenterCenterTexture.texID);
Block[470]->SetPos(33, 92);
Block[470]->SetSize(1);
Block[470]->SetTexture(CenterCenterTexture.texID);
Block[471]->SetPos(34, 92);
Block[471]->SetSize(1);
Block[471]->SetTexture(CenterCenterTexture.texID);
Block[472]->SetPos(35, 92);
Block[472]->SetSize(1);
Block[472]->SetTexture(CenterCenterTexture.texID);
Block[473]->SetPos(36, 92);
Block[473]->SetSize(1);
Block[473]->SetTexture(CenterCenterTexture.texID);
Block[474]->SetPos(37, 92);
Block[474]->SetSize(1);
Block[474]->SetTexture(CenterCenterTexture.texID);
Block[475]->SetPos(38, 92);
Block[475]->SetSize(1);
Block[475]->SetTexture(CenterCenterTexture.texID);
Block[476]->SetPos(39, 92);
Block[476]->SetSize(1);
Block[476]->SetTexture(CenterCenterTexture.texID);
Block[477]->SetPos(40, 92);
Block[477]->SetSize(1);
Block[477]->SetTexture(CenterCenterTexture.texID);
Block[478]->SetPos(41, 92);
Block[478]->SetSize(1);
Block[478]->SetTexture(CenterCenterTexture.texID);
Block[479]->SetPos(42, 92);
Block[479]->SetSize(1);
Block[479]->SetTexture(CenterCenterTexture.texID);
Block[480]->SetPos(43, 92);
Block[480]->SetSize(1);
Block[480]->SetTexture(CenterCenterTexture.texID);
Block[481]->SetPos(44, 92);
Block[481]->SetSize(1);
Block[481]->SetTexture(CenterCenterTexture.texID);
Block[482]->SetPos(45, 92);
Block[482]->SetSize(1);
Block[482]->SetTexture(CenterCenterTexture.texID);
Block[483]->SetPos(46, 92);
Block[483]->SetSize(1);
Block[483]->SetTexture(CenterCenterTexture.texID);
Block[484]->SetPos(47, 92);
Block[484]->SetSize(1);
Block[484]->SetTexture(CenterCenterTexture.texID);
Block[485]->SetPos(48, 92);
Block[485]->SetSize(1);
Block[485]->SetTexture(CenterCenterTexture.texID);
Block[486]->SetPos(49, 92);
Block[486]->SetSize(1);
Block[486]->SetTexture(CenterCenterTexture.texID);
Block[487]->SetPos(50, 92);
Block[487]->SetSize(1);
Block[487]->SetTexture(CenterCenterTexture.texID);
Block[488]->SetPos(51, 92);
Block[488]->SetSize(1);
Block[488]->SetTexture(CenterCenterTexture.texID);
Block[489]->SetPos(52, 92);
Block[489]->SetSize(1);
Block[489]->SetTexture(CenterCenterTexture.texID);
Block[490]->SetPos(53, 92);
Block[490]->SetSize(1);
Block[490]->SetTexture(CenterCenterTexture.texID);
Block[491]->SetPos(54, 92);
Block[491]->SetSize(1);
Block[491]->SetTexture(CenterCenterTexture.texID);
Block[492]->SetPos(55, 92);
Block[492]->SetSize(1);
Block[492]->SetTexture(CenterCenterTexture.texID);
Block[493]->SetPos(56, 92);
Block[493]->SetSize(1);
Block[493]->SetTexture(CenterCenterTexture.texID);
Block[494]->SetPos(57, 92);
Block[494]->SetSize(1);
Block[494]->SetTexture(CenterCenterTexture.texID);
Block[495]->SetPos(58, 92);
Block[495]->SetSize(1);
Block[495]->SetTexture(CenterCenterTexture.texID);
Block[496]->SetPos(59, 92);
Block[496]->SetSize(1);
Block[496]->SetTexture(CenterRightTexture.texID);
Block[497]->SetPos(0, 91);
Block[497]->SetSize(1);
Block[497]->SetTexture(BottomCenterTexture.texID);
Block[498]->SetPos(1, 91);
Block[498]->SetSize(1);
Block[498]->SetTexture(BottomCenterTexture.texID);
Block[499]->SetPos(2, 91);
Block[499]->SetSize(1);
Block[499]->SetTexture(BottomCenterTexture.texID);
Block[500]->SetPos(3, 91);
Block[500]->SetSize(1);
Block[500]->SetTexture(BottomCenterTexture.texID);
Block[501]->SetPos(4, 91);
Block[501]->SetSize(1);
Block[501]->SetTexture(BottomCenterTexture.texID);
Block[502]->SetPos(5, 91);
Block[502]->SetSize(1);
Block[502]->SetTexture(BottomCenterTexture.texID);
Block[503]->SetPos(6, 91);
Block[503]->SetSize(1);
Block[503]->SetTexture(BottomCenterTexture.texID);
Block[504]->SetPos(7, 91);
Block[504]->SetSize(1);
Block[504]->SetTexture(BottomCenterTexture.texID);
Block[505]->SetPos(8, 91);
Block[505]->SetSize(1);
Block[505]->SetTexture(BottomCenterTexture.texID);
Block[506]->SetPos(9, 91);
Block[506]->SetSize(1);
Block[506]->SetTexture(BottomCenterTexture.texID);
Block[507]->SetPos(10, 91);
Block[507]->SetSize(1);
Block[507]->SetTexture(BottomCenterTexture.texID);
Block[508]->SetPos(11, 91);
Block[508]->SetSize(1);
Block[508]->SetTexture(BottomCenterTexture.texID);
Block[509]->SetPos(12, 91);
Block[509]->SetSize(1);
Block[509]->SetTexture(BottomCenterTexture.texID);
Block[510]->SetPos(13, 91);
Block[510]->SetSize(1);
Block[510]->SetTexture(BottomCenterTexture.texID);
Block[511]->SetPos(14, 91);
Block[511]->SetSize(1);
Block[511]->SetTexture(BottomCenterTexture.texID);
Block[512]->SetPos(15, 91);
Block[512]->SetSize(1);
Block[512]->SetTexture(BottomCenterTexture.texID);
Block[513]->SetPos(16, 91);
Block[513]->SetSize(1);
Block[513]->SetTexture(BottomCenterTexture.texID);
Block[514]->SetPos(17, 91);
Block[514]->SetSize(1);
Block[514]->SetTexture(BottomCenterTexture.texID);
Block[515]->SetPos(18, 91);
Block[515]->SetSize(1);
Block[515]->SetTexture(BottomCenterTexture.texID);
Block[516]->SetPos(19, 91);
Block[516]->SetSize(1);
Block[516]->SetTexture(BottomCenterTexture.texID);
Block[517]->SetPos(20, 91);
Block[517]->SetSize(1);
Block[517]->SetTexture(BottomCenterTexture.texID);
Block[518]->SetPos(21, 91);
Block[518]->SetSize(1);
Block[518]->SetTexture(BottomCenterTexture.texID);
Block[519]->SetPos(22, 91);
Block[519]->SetSize(1);
Block[519]->SetTexture(BottomCenterTexture.texID);
Block[520]->SetPos(23, 91);
Block[520]->SetSize(1);
Block[520]->SetTexture(BottomCenterTexture.texID);
Block[521]->SetPos(24, 91);
Block[521]->SetSize(1);
Block[521]->SetTexture(BottomCenterTexture.texID);
Block[522]->SetPos(25, 91);
Block[522]->SetSize(1);
Block[522]->SetTexture(BottomCenterTexture.texID);
Block[523]->SetPos(26, 91);
Block[523]->SetSize(1);
Block[523]->SetTexture(BottomCenterTexture.texID);
Block[524]->SetPos(27, 91);
Block[524]->SetSize(1);
Block[524]->SetTexture(BottomCenterTexture.texID);
Block[525]->SetPos(28, 91);
Block[525]->SetSize(1);
Block[525]->SetTexture(BottomCenterTexture.texID);
Block[526]->SetPos(29, 91);
Block[526]->SetSize(1);
Block[526]->SetTexture(BottomCenterTexture.texID);
Block[527]->SetPos(30, 91);
Block[527]->SetSize(1);
Block[527]->SetTexture(BottomCenterTexture.texID);
Block[528]->SetPos(31, 91);
Block[528]->SetSize(1);
Block[528]->SetTexture(BottomCenterTexture.texID);
Block[529]->SetPos(32, 91);
Block[529]->SetSize(1);
Block[529]->SetTexture(BottomCenterTexture.texID);
Block[530]->SetPos(33, 91);
Block[530]->SetSize(1);
Block[530]->SetTexture(BottomCenterTexture.texID);
Block[531]->SetPos(34, 91);
Block[531]->SetSize(1);
Block[531]->SetTexture(BottomCenterTexture.texID);
Block[532]->SetPos(35, 91);
Block[532]->SetSize(1);
Block[532]->SetTexture(BottomCenterTexture.texID);
Block[533]->SetPos(36, 91);
Block[533]->SetSize(1);
Block[533]->SetTexture(BottomCenterTexture.texID);
Block[534]->SetPos(37, 91);
Block[534]->SetSize(1);
Block[534]->SetTexture(BottomCenterTexture.texID);
Block[535]->SetPos(38, 91);
Block[535]->SetSize(1);
Block[535]->SetTexture(BottomCenterTexture.texID);
Block[536]->SetPos(39, 91);
Block[536]->SetSize(1);
Block[536]->SetTexture(BottomCenterTexture.texID);
Block[537]->SetPos(40, 91);
Block[537]->SetSize(1);
Block[537]->SetTexture(BottomCenterTexture.texID);
Block[538]->SetPos(41, 91);
Block[538]->SetSize(1);
Block[538]->SetTexture(BottomCenterTexture.texID);
Block[539]->SetPos(42, 91);
Block[539]->SetSize(1);
Block[539]->SetTexture(BottomCenterTexture.texID);
Block[540]->SetPos(43, 91);
Block[540]->SetSize(1);
Block[540]->SetTexture(BottomCenterTexture.texID);
Block[541]->SetPos(44, 91);
Block[541]->SetSize(1);
Block[541]->SetTexture(BottomCenterTexture.texID);
Block[542]->SetPos(45, 91);
Block[542]->SetSize(1);
Block[542]->SetTexture(BottomCenterTexture.texID);
Block[543]->SetPos(46, 91);
Block[543]->SetSize(1);
Block[543]->SetTexture(BottomCenterTexture.texID);
Block[544]->SetPos(47, 91);
Block[544]->SetSize(1);
Block[544]->SetTexture(BottomCenterTexture.texID);
Block[545]->SetPos(48, 91);
Block[545]->SetSize(1);
Block[545]->SetTexture(BottomCenterTexture.texID);
Block[546]->SetPos(49, 91);
Block[546]->SetSize(1);
Block[546]->SetTexture(BottomCenterTexture.texID);
Block[547]->SetPos(50, 91);
Block[547]->SetSize(1);
Block[547]->SetTexture(BottomCenterTexture.texID);
Block[548]->SetPos(51, 91);
Block[548]->SetSize(1);
Block[548]->SetTexture(BottomCenterTexture.texID);
Block[549]->SetPos(52, 91);
Block[549]->SetSize(1);
Block[549]->SetTexture(BottomCenterTexture.texID);
Block[550]->SetPos(53, 91);
Block[550]->SetSize(1);
Block[550]->SetTexture(BottomCenterTexture.texID);
Block[551]->SetPos(54, 91);
Block[551]->SetSize(1);
Block[551]->SetTexture(BottomCenterTexture.texID);
Block[552]->SetPos(55, 91);
Block[552]->SetSize(1);
Block[552]->SetTexture(BottomCenterTexture.texID);
Block[553]->SetPos(56, 91);
Block[553]->SetSize(1);
Block[553]->SetTexture(BottomCenterTexture.texID);
Block[554]->SetPos(57, 91);
Block[554]->SetSize(1);
Block[554]->SetTexture(BottomCenterTexture.texID);
Block[555]->SetPos(58, 91);
Block[555]->SetSize(1);
Block[555]->SetTexture(BottomCenterTexture.texID);
Block[556]->SetPos(59, 91);
Block[556]->SetSize(1);
Block[556]->SetTexture(BottomRightTexture.texID);
Block[557]->SetPos(0, 76);
Block[557]->SetSize(1);
Block[557]->SetTexture(TopLeftTexture.texID);
Block[558]->SetPos(1, 76);
Block[558]->SetSize(1);
Block[558]->SetTexture(TopCenterTexture.texID);
Block[559]->SetPos(2, 76);
Block[559]->SetSize(1);
Block[559]->SetTexture(TopCenterTexture.texID);
Block[560]->SetPos(3, 76);
Block[560]->SetSize(1);
Block[560]->SetTexture(TopCenterTexture.texID);
Block[561]->SetPos(4, 76);
Block[561]->SetSize(1);
Block[561]->SetTexture(TopCenterTexture.texID);
Block[562]->SetPos(5, 76);
Block[562]->SetSize(1);
Block[562]->SetTexture(TopCenterTexture.texID);
Block[563]->SetPos(6, 76);
Block[563]->SetSize(1);
Block[563]->SetTexture(TopCenterTexture.texID);
Block[564]->SetPos(7, 76);
Block[564]->SetSize(1);
Block[564]->SetTexture(TopCenterTexture.texID);
Block[565]->SetPos(8, 76);
Block[565]->SetSize(1);
Block[565]->SetTexture(TopCenterTexture.texID);
Block[566]->SetPos(9, 76);
Block[566]->SetSize(1);
Block[566]->SetTexture(TopCenterTexture.texID);
Block[567]->SetPos(10, 76);
Block[567]->SetSize(1);
Block[567]->SetTexture(TopCenterTexture.texID);
Block[568]->SetPos(11, 76);
Block[568]->SetSize(1);
Block[568]->SetTexture(TopCenterTexture.texID);
Block[569]->SetPos(12, 76);
Block[569]->SetSize(1);
Block[569]->SetTexture(TopCenterTexture.texID);
Block[570]->SetPos(13, 76);
Block[570]->SetSize(1);
Block[570]->SetTexture(TopCenterTexture.texID);
Block[571]->SetPos(14, 76);
Block[571]->SetSize(1);
Block[571]->SetTexture(TopCenterTexture.texID);
Block[572]->SetPos(15, 76);
Block[572]->SetSize(1);
Block[572]->SetTexture(TopCenterTexture.texID);
Block[573]->SetPos(16, 76);
Block[573]->SetSize(1);
Block[573]->SetTexture(TopCenterTexture.texID);
Block[574]->SetPos(17, 76);
Block[574]->SetSize(1);
Block[574]->SetTexture(TopCenterTexture.texID);
Block[575]->SetPos(18, 76);
Block[575]->SetSize(1);
Block[575]->SetTexture(TopCenterTexture.texID);
Block[576]->SetPos(19, 76);
Block[576]->SetSize(1);
Block[576]->SetTexture(TopCenterTexture.texID);
Block[577]->SetPos(20, 76);
Block[577]->SetSize(1);
Block[577]->SetTexture(TopCenterTexture.texID);
Block[578]->SetPos(21, 76);
Block[578]->SetSize(1);
Block[578]->SetTexture(TopCenterTexture.texID);
Block[579]->SetPos(22, 76);
Block[579]->SetSize(1);
Block[579]->SetTexture(TopCenterTexture.texID);
Block[580]->SetPos(23, 76);
Block[580]->SetSize(1);
Block[580]->SetTexture(TopCenterTexture.texID);
Block[581]->SetPos(24, 76);
Block[581]->SetSize(1);
Block[581]->SetTexture(TopCenterTexture.texID);
Block[582]->SetPos(25, 76);
Block[582]->SetSize(1);
Block[582]->SetTexture(TopCenterTexture.texID);
Block[583]->SetPos(26, 76);
Block[583]->SetSize(1);
Block[583]->SetTexture(TopCenterTexture.texID);
Block[584]->SetPos(27, 76);
Block[584]->SetSize(1);
Block[584]->SetTexture(TopCenterTexture.texID);
Block[585]->SetPos(28, 76);
Block[585]->SetSize(1);
Block[585]->SetTexture(TopCenterTexture.texID);
Block[586]->SetPos(29, 76);
Block[586]->SetSize(1);
Block[586]->SetTexture(TopCenterTexture.texID);
Block[587]->SetPos(30, 76);
Block[587]->SetSize(1);
Block[587]->SetTexture(TopCenterTexture.texID);
Block[588]->SetPos(31, 76);
Block[588]->SetSize(1);
Block[588]->SetTexture(TopCenterTexture.texID);
Block[589]->SetPos(32, 76);
Block[589]->SetSize(1);
Block[589]->SetTexture(TopCenterTexture.texID);
Block[590]->SetPos(33, 76);
Block[590]->SetSize(1);
Block[590]->SetTexture(TopCenterTexture.texID);
Block[591]->SetPos(34, 76);
Block[591]->SetSize(1);
Block[591]->SetTexture(TopCenterTexture.texID);
Block[592]->SetPos(35, 76);
Block[592]->SetSize(1);
Block[592]->SetTexture(TopCenterTexture.texID);
Block[593]->SetPos(36, 76);
Block[593]->SetSize(1);
Block[593]->SetTexture(TopCenterTexture.texID);
Block[594]->SetPos(37, 76);
Block[594]->SetSize(1);
Block[594]->SetTexture(TopCenterTexture.texID);
Block[595]->SetPos(38, 76);
Block[595]->SetSize(1);
Block[595]->SetTexture(TopCenterTexture.texID);
Block[596]->SetPos(39, 76);
Block[596]->SetSize(1);
Block[596]->SetTexture(TopCenterTexture.texID);
Block[597]->SetPos(40, 76);
Block[597]->SetSize(1);
Block[597]->SetTexture(TopCenterTexture.texID);
Block[598]->SetPos(41, 76);
Block[598]->SetSize(1);
Block[598]->SetTexture(TopCenterTexture.texID);
Block[599]->SetPos(42, 76);
Block[599]->SetSize(1);
Block[599]->SetTexture(TopCenterTexture.texID);
Block[600]->SetPos(43, 76);
Block[600]->SetSize(1);
Block[600]->SetTexture(TopCenterTexture.texID);
Block[601]->SetPos(44, 76);
Block[601]->SetSize(1);
Block[601]->SetTexture(TopCenterTexture.texID);
Block[602]->SetPos(45, 76);
Block[602]->SetSize(1);
Block[602]->SetTexture(TopCenterTexture.texID);
Block[603]->SetPos(46, 76);
Block[603]->SetSize(1);
Block[603]->SetTexture(TopCenterTexture.texID);
Block[604]->SetPos(47, 76);
Block[604]->SetSize(1);
Block[604]->SetTexture(TopCenterTexture.texID);
Block[605]->SetPos(48, 76);
Block[605]->SetSize(1);
Block[605]->SetTexture(TopCenterTexture.texID);
Block[606]->SetPos(49, 76);
Block[606]->SetSize(1);
Block[606]->SetTexture(TopCenterTexture.texID);
Block[607]->SetPos(50, 76);
Block[607]->SetSize(1);
Block[607]->SetTexture(TopCenterTexture.texID);
Block[608]->SetPos(51, 76);
Block[608]->SetSize(1);
Block[608]->SetTexture(TopCenterTexture.texID);
Block[609]->SetPos(52, 76);
Block[609]->SetSize(1);
Block[609]->SetTexture(TopCenterTexture.texID);
Block[610]->SetPos(53, 76);
Block[610]->SetSize(1);
Block[610]->SetTexture(TopCenterTexture.texID);
Block[611]->SetPos(54, 76);
Block[611]->SetSize(1);
Block[611]->SetTexture(TopCenterTexture.texID);
Block[612]->SetPos(55, 76);
Block[612]->SetSize(1);
Block[612]->SetTexture(TopCenterTexture.texID);
Block[613]->SetPos(56, 76);
Block[613]->SetSize(1);
Block[613]->SetTexture(TopCenterTexture.texID);
Block[614]->SetPos(57, 76);
Block[614]->SetSize(1);
Block[614]->SetTexture(TopCenterTexture.texID);
Block[615]->SetPos(58, 76);
Block[615]->SetSize(1);
Block[615]->SetTexture(TopCenterTexture.texID);
Block[616]->SetPos(59, 76);
Block[616]->SetSize(1);
Block[616]->SetTexture(TopCenterTexture.texID);
Block[617]->SetPos(0, 75);
Block[617]->SetSize(1);
Block[617]->SetTexture(CenterLeftTexture.texID);
Block[618]->SetPos(1, 75);
Block[618]->SetSize(1);
Block[618]->SetTexture(CenterCenterTexture.texID);
Block[619]->SetPos(2, 75);
Block[619]->SetSize(1);
Block[619]->SetTexture(CenterCenterTexture.texID);
Block[620]->SetPos(3, 75);
Block[620]->SetSize(1);
Block[620]->SetTexture(CenterCenterTexture.texID);
Block[621]->SetPos(4, 75);
Block[621]->SetSize(1);
Block[621]->SetTexture(CenterCenterTexture.texID);
Block[622]->SetPos(5, 75);
Block[622]->SetSize(1);
Block[622]->SetTexture(CenterCenterTexture.texID);
Block[623]->SetPos(6, 75);
Block[623]->SetSize(1);
Block[623]->SetTexture(CenterCenterTexture.texID);
Block[624]->SetPos(7, 75);
Block[624]->SetSize(1);
Block[624]->SetTexture(CenterCenterTexture.texID);
Block[625]->SetPos(8, 75);
Block[625]->SetSize(1);
Block[625]->SetTexture(CenterCenterTexture.texID);
Block[626]->SetPos(9, 75);
Block[626]->SetSize(1);
Block[626]->SetTexture(CenterCenterTexture.texID);
Block[627]->SetPos(10, 75);
Block[627]->SetSize(1);
Block[627]->SetTexture(CenterCenterTexture.texID);
Block[628]->SetPos(11, 75);
Block[628]->SetSize(1);
Block[628]->SetTexture(CenterCenterTexture.texID);
Block[629]->SetPos(12, 75);
Block[629]->SetSize(1);
Block[629]->SetTexture(CenterCenterTexture.texID);
Block[630]->SetPos(13, 75);
Block[630]->SetSize(1);
Block[630]->SetTexture(CenterCenterTexture.texID);
Block[631]->SetPos(14, 75);
Block[631]->SetSize(1);
Block[631]->SetTexture(CenterCenterTexture.texID);
Block[632]->SetPos(15, 75);
Block[632]->SetSize(1);
Block[632]->SetTexture(CenterCenterTexture.texID);
Block[633]->SetPos(16, 75);
Block[633]->SetSize(1);
Block[633]->SetTexture(CenterCenterTexture.texID);
Block[634]->SetPos(17, 75);
Block[634]->SetSize(1);
Block[634]->SetTexture(CenterCenterTexture.texID);
Block[635]->SetPos(18, 75);
Block[635]->SetSize(1);
Block[635]->SetTexture(CenterCenterTexture.texID);
Block[636]->SetPos(19, 75);
Block[636]->SetSize(1);
Block[636]->SetTexture(CenterCenterTexture.texID);
Block[637]->SetPos(20, 75);
Block[637]->SetSize(1);
Block[637]->SetTexture(CenterCenterTexture.texID);
Block[638]->SetPos(21, 75);
Block[638]->SetSize(1);
Block[638]->SetTexture(CenterCenterTexture.texID);
Block[639]->SetPos(22, 75);
Block[639]->SetSize(1);
Block[639]->SetTexture(CenterCenterTexture.texID);
Block[640]->SetPos(23, 75);
Block[640]->SetSize(1);
Block[640]->SetTexture(CenterCenterTexture.texID);
Block[641]->SetPos(24, 75);
Block[641]->SetSize(1);
Block[641]->SetTexture(CenterCenterTexture.texID);
Block[642]->SetPos(25, 75);
Block[642]->SetSize(1);
Block[642]->SetTexture(CenterCenterTexture.texID);
Block[643]->SetPos(26, 75);
Block[643]->SetSize(1);
Block[643]->SetTexture(CenterCenterTexture.texID);
Block[644]->SetPos(27, 75);
Block[644]->SetSize(1);
Block[644]->SetTexture(CenterCenterTexture.texID);
Block[645]->SetPos(28, 75);
Block[645]->SetSize(1);
Block[645]->SetTexture(CenterCenterTexture.texID);
Block[646]->SetPos(29, 75);
Block[646]->SetSize(1);
Block[646]->SetTexture(CenterCenterTexture.texID);
Block[647]->SetPos(30, 75);
Block[647]->SetSize(1);
Block[647]->SetTexture(CenterCenterTexture.texID);
Block[648]->SetPos(31, 75);
Block[648]->SetSize(1);
Block[648]->SetTexture(CenterCenterTexture.texID);
Block[649]->SetPos(32, 75);
Block[649]->SetSize(1);
Block[649]->SetTexture(CenterCenterTexture.texID);
Block[650]->SetPos(33, 75);
Block[650]->SetSize(1);
Block[650]->SetTexture(CenterCenterTexture.texID);
Block[651]->SetPos(34, 75);
Block[651]->SetSize(1);
Block[651]->SetTexture(CenterCenterTexture.texID);
Block[652]->SetPos(35, 75);
Block[652]->SetSize(1);
Block[652]->SetTexture(CenterCenterTexture.texID);
Block[653]->SetPos(36, 75);
Block[653]->SetSize(1);
Block[653]->SetTexture(CenterCenterTexture.texID);
Block[654]->SetPos(37, 75);
Block[654]->SetSize(1);
Block[654]->SetTexture(CenterCenterTexture.texID);
Block[655]->SetPos(38, 75);
Block[655]->SetSize(1);
Block[655]->SetTexture(CenterCenterTexture.texID);
Block[656]->SetPos(39, 75);
Block[656]->SetSize(1);
Block[656]->SetTexture(CenterCenterTexture.texID);
Block[657]->SetPos(40, 75);
Block[657]->SetSize(1);
Block[657]->SetTexture(CenterCenterTexture.texID);
Block[658]->SetPos(41, 75);
Block[658]->SetSize(1);
Block[658]->SetTexture(CenterCenterTexture.texID);
Block[659]->SetPos(42, 75);
Block[659]->SetSize(1);
Block[659]->SetTexture(CenterCenterTexture.texID);
Block[660]->SetPos(43, 75);
Block[660]->SetSize(1);
Block[660]->SetTexture(CenterCenterTexture.texID);
Block[661]->SetPos(44, 75);
Block[661]->SetSize(1);
Block[661]->SetTexture(CenterCenterTexture.texID);
Block[662]->SetPos(45, 75);
Block[662]->SetSize(1);
Block[662]->SetTexture(CenterCenterTexture.texID);
Block[663]->SetPos(46, 75);
Block[663]->SetSize(1);
Block[663]->SetTexture(CenterCenterTexture.texID);
Block[664]->SetPos(47, 75);
Block[664]->SetSize(1);
Block[664]->SetTexture(CenterCenterTexture.texID);
Block[665]->SetPos(48, 75);
Block[665]->SetSize(1);
Block[665]->SetTexture(CenterCenterTexture.texID);
Block[666]->SetPos(49, 75);
Block[666]->SetSize(1);
Block[666]->SetTexture(CenterCenterTexture.texID);
Block[667]->SetPos(50, 75);
Block[667]->SetSize(1);
Block[667]->SetTexture(CenterCenterTexture.texID);
Block[668]->SetPos(51, 75);
Block[668]->SetSize(1);
Block[668]->SetTexture(CenterCenterTexture.texID);
Block[669]->SetPos(52, 75);
Block[669]->SetSize(1);
Block[669]->SetTexture(CenterCenterTexture.texID);
Block[670]->SetPos(53, 75);
Block[670]->SetSize(1);
Block[670]->SetTexture(CenterCenterTexture.texID);
Block[671]->SetPos(54, 75);
Block[671]->SetSize(1);
Block[671]->SetTexture(CenterCenterTexture.texID);
Block[672]->SetPos(55, 75);
Block[672]->SetSize(1);
Block[672]->SetTexture(CenterCenterTexture.texID);
Block[673]->SetPos(56, 75);
Block[673]->SetSize(1);
Block[673]->SetTexture(CenterCenterTexture.texID);
Block[674]->SetPos(57, 75);
Block[674]->SetSize(1);
Block[674]->SetTexture(CenterCenterTexture.texID);
Block[675]->SetPos(58, 75);
Block[675]->SetSize(1);
Block[675]->SetTexture(CenterCenterTexture.texID);
Block[676]->SetPos(59, 75);
Block[676]->SetSize(1);
Block[676]->SetTexture(CenterCenterTexture.texID);
Block[677]->SetPos(0, 74);
Block[677]->SetSize(1);
Block[677]->SetTexture(CenterLeftTexture.texID);
Block[678]->SetPos(1, 74);
Block[678]->SetSize(1);
Block[678]->SetTexture(CenterCenterTexture.texID);
Block[679]->SetPos(2, 74);
Block[679]->SetSize(1);
Block[679]->SetTexture(CenterCenterTexture.texID);
Block[680]->SetPos(3, 74);
Block[680]->SetSize(1);
Block[680]->SetTexture(CenterCenterTexture.texID);
Block[681]->SetPos(4, 74);
Block[681]->SetSize(1);
Block[681]->SetTexture(CenterCenterTexture.texID);
Block[682]->SetPos(5, 74);
Block[682]->SetSize(1);
Block[682]->SetTexture(CenterCenterTexture.texID);
Block[683]->SetPos(6, 74);
Block[683]->SetSize(1);
Block[683]->SetTexture(CenterCenterTexture.texID);
Block[684]->SetPos(7, 74);
Block[684]->SetSize(1);
Block[684]->SetTexture(CenterCenterTexture.texID);
Block[685]->SetPos(8, 74);
Block[685]->SetSize(1);
Block[685]->SetTexture(CenterCenterTexture.texID);
Block[686]->SetPos(9, 74);
Block[686]->SetSize(1);
Block[686]->SetTexture(CenterCenterTexture.texID);
Block[687]->SetPos(10, 74);
Block[687]->SetSize(1);
Block[687]->SetTexture(CenterCenterTexture.texID);
Block[688]->SetPos(11, 74);
Block[688]->SetSize(1);
Block[688]->SetTexture(CenterCenterTexture.texID);
Block[689]->SetPos(12, 74);
Block[689]->SetSize(1);
Block[689]->SetTexture(CenterCenterTexture.texID);
Block[690]->SetPos(13, 74);
Block[690]->SetSize(1);
Block[690]->SetTexture(CenterCenterTexture.texID);
Block[691]->SetPos(14, 74);
Block[691]->SetSize(1);
Block[691]->SetTexture(CenterCenterTexture.texID);
Block[692]->SetPos(15, 74);
Block[692]->SetSize(1);
Block[692]->SetTexture(CenterCenterTexture.texID);
Block[693]->SetPos(16, 74);
Block[693]->SetSize(1);
Block[693]->SetTexture(CenterCenterTexture.texID);
Block[694]->SetPos(17, 74);
Block[694]->SetSize(1);
Block[694]->SetTexture(CenterCenterTexture.texID);
Block[695]->SetPos(18, 74);
Block[695]->SetSize(1);
Block[695]->SetTexture(CenterCenterTexture.texID);
Block[696]->SetPos(19, 74);
Block[696]->SetSize(1);
Block[696]->SetTexture(CenterCenterTexture.texID);
Block[697]->SetPos(20, 74);
Block[697]->SetSize(1);
Block[697]->SetTexture(CenterCenterTexture.texID);
Block[698]->SetPos(21, 74);
Block[698]->SetSize(1);
Block[698]->SetTexture(CenterCenterTexture.texID);
Block[699]->SetPos(22, 74);
Block[699]->SetSize(1);
Block[699]->SetTexture(CenterCenterTexture.texID);
Block[700]->SetPos(23, 74);
Block[700]->SetSize(1);
Block[700]->SetTexture(CenterCenterTexture.texID);
Block[701]->SetPos(24, 74);
Block[701]->SetSize(1);
Block[701]->SetTexture(CenterCenterTexture.texID);
Block[702]->SetPos(25, 74);
Block[702]->SetSize(1);
Block[702]->SetTexture(CenterCenterTexture.texID);
Block[703]->SetPos(26, 74);
Block[703]->SetSize(1);
Block[703]->SetTexture(CenterCenterTexture.texID);
Block[704]->SetPos(27, 74);
Block[704]->SetSize(1);
Block[704]->SetTexture(CenterCenterTexture.texID);
Block[705]->SetPos(28, 74);
Block[705]->SetSize(1);
Block[705]->SetTexture(CenterCenterTexture.texID);
Block[706]->SetPos(29, 74);
Block[706]->SetSize(1);
Block[706]->SetTexture(CenterCenterTexture.texID);
Block[707]->SetPos(30, 74);
Block[707]->SetSize(1);
Block[707]->SetTexture(CenterCenterTexture.texID);
Block[708]->SetPos(31, 74);
Block[708]->SetSize(1);
Block[708]->SetTexture(CenterCenterTexture.texID);
Block[709]->SetPos(32, 74);
Block[709]->SetSize(1);
Block[709]->SetTexture(CenterCenterTexture.texID);
Block[710]->SetPos(33, 74);
Block[710]->SetSize(1);
Block[710]->SetTexture(CenterCenterTexture.texID);
Block[711]->SetPos(34, 74);
Block[711]->SetSize(1);
Block[711]->SetTexture(CenterCenterTexture.texID);
Block[712]->SetPos(35, 74);
Block[712]->SetSize(1);
Block[712]->SetTexture(CenterCenterTexture.texID);
Block[713]->SetPos(36, 74);
Block[713]->SetSize(1);
Block[713]->SetTexture(CenterCenterTexture.texID);
Block[714]->SetPos(37, 74);
Block[714]->SetSize(1);
Block[714]->SetTexture(CenterCenterTexture.texID);
Block[715]->SetPos(38, 74);
Block[715]->SetSize(1);
Block[715]->SetTexture(CenterCenterTexture.texID);
Block[716]->SetPos(39, 74);
Block[716]->SetSize(1);
Block[716]->SetTexture(CenterCenterTexture.texID);
Block[717]->SetPos(40, 74);
Block[717]->SetSize(1);
Block[717]->SetTexture(CenterCenterTexture.texID);
Block[718]->SetPos(41, 74);
Block[718]->SetSize(1);
Block[718]->SetTexture(CenterCenterTexture.texID);
Block[719]->SetPos(42, 74);
Block[719]->SetSize(1);
Block[719]->SetTexture(CenterCenterTexture.texID);
Block[720]->SetPos(43, 74);
Block[720]->SetSize(1);
Block[720]->SetTexture(CenterCenterTexture.texID);
Block[721]->SetPos(44, 74);
Block[721]->SetSize(1);
Block[721]->SetTexture(CenterCenterTexture.texID);
Block[722]->SetPos(45, 74);
Block[722]->SetSize(1);
Block[722]->SetTexture(CenterCenterTexture.texID);
Block[723]->SetPos(46, 74);
Block[723]->SetSize(1);
Block[723]->SetTexture(CenterCenterTexture.texID);
Block[724]->SetPos(47, 74);
Block[724]->SetSize(1);
Block[724]->SetTexture(CenterCenterTexture.texID);
Block[725]->SetPos(48, 74);
Block[725]->SetSize(1);
Block[725]->SetTexture(CenterCenterTexture.texID);
Block[726]->SetPos(49, 74);
Block[726]->SetSize(1);
Block[726]->SetTexture(CenterCenterTexture.texID);
Block[727]->SetPos(50, 74);
Block[727]->SetSize(1);
Block[727]->SetTexture(CenterCenterTexture.texID);
Block[728]->SetPos(51, 74);
Block[728]->SetSize(1);
Block[728]->SetTexture(CenterCenterTexture.texID);
Block[729]->SetPos(52, 74);
Block[729]->SetSize(1);
Block[729]->SetTexture(CenterCenterTexture.texID);
Block[730]->SetPos(53, 74);
Block[730]->SetSize(1);
Block[730]->SetTexture(CenterCenterTexture.texID);
Block[731]->SetPos(54, 74);
Block[731]->SetSize(1);
Block[731]->SetTexture(CenterCenterTexture.texID);
Block[732]->SetPos(55, 74);
Block[732]->SetSize(1);
Block[732]->SetTexture(CenterCenterTexture.texID);
Block[733]->SetPos(56, 74);
Block[733]->SetSize(1);
Block[733]->SetTexture(CenterCenterTexture.texID);
Block[734]->SetPos(57, 74);
Block[734]->SetSize(1);
Block[734]->SetTexture(CenterCenterTexture.texID);
Block[735]->SetPos(58, 74);
Block[735]->SetSize(1);
Block[735]->SetTexture(CenterCenterTexture.texID);
Block[736]->SetPos(59, 74);
Block[736]->SetSize(1);
Block[736]->SetTexture(CenterCenterTexture.texID);
Block[737]->SetPos(0, 41);
Block[737]->SetSize(1);
Block[737]->SetTexture(TopLeftTexture.texID);
Block[738]->SetPos(1, 41);
Block[738]->SetSize(1);
Block[738]->SetTexture(TopCenterTexture.texID);
Block[739]->SetPos(2, 41);
Block[739]->SetSize(1);
Block[739]->SetTexture(TopCenterTexture.texID);
Block[740]->SetPos(3, 41);
Block[740]->SetSize(1);
Block[740]->SetTexture(TopCenterTexture.texID);
Block[741]->SetPos(4, 41);
Block[741]->SetSize(1);
Block[741]->SetTexture(TopCenterTexture.texID);
Block[742]->SetPos(5, 41);
Block[742]->SetSize(1);
Block[742]->SetTexture(TopCenterTexture.texID);
Block[743]->SetPos(6, 41);
Block[743]->SetSize(1);
Block[743]->SetTexture(TopCenterTexture.texID);
Block[744]->SetPos(7, 41);
Block[744]->SetSize(1);
Block[744]->SetTexture(TopCenterTexture.texID);
Block[745]->SetPos(8, 41);
Block[745]->SetSize(1);
Block[745]->SetTexture(TopCenterTexture.texID);
Block[746]->SetPos(9, 41);
Block[746]->SetSize(1);
Block[746]->SetTexture(TopCenterTexture.texID);
Block[747]->SetPos(10, 41);
Block[747]->SetSize(1);
Block[747]->SetTexture(TopCenterTexture.texID);
Block[748]->SetPos(11, 41);
Block[748]->SetSize(1);
Block[748]->SetTexture(TopCenterTexture.texID);
Block[749]->SetPos(12, 41);
Block[749]->SetSize(1);
Block[749]->SetTexture(TopCenterTexture.texID);
Block[750]->SetPos(13, 41);
Block[750]->SetSize(1);
Block[750]->SetTexture(TopCenterTexture.texID);
Block[751]->SetPos(14, 41);
Block[751]->SetSize(1);
Block[751]->SetTexture(TopCenterTexture.texID);
Block[752]->SetPos(15, 41);
Block[752]->SetSize(1);
Block[752]->SetTexture(TopCenterTexture.texID);
Block[753]->SetPos(16, 41);
Block[753]->SetSize(1);
Block[753]->SetTexture(TopCenterTexture.texID);
Block[754]->SetPos(17, 41);
Block[754]->SetSize(1);
Block[754]->SetTexture(TopCenterTexture.texID);
Block[755]->SetPos(18, 41);
Block[755]->SetSize(1);
Block[755]->SetTexture(TopCenterTexture.texID);
Block[756]->SetPos(19, 41);
Block[756]->SetSize(1);
Block[756]->SetTexture(TopCenterTexture.texID);
Block[757]->SetPos(20, 41);
Block[757]->SetSize(1);
Block[757]->SetTexture(TopCenterTexture.texID);
Block[758]->SetPos(21, 41);
Block[758]->SetSize(1);
Block[758]->SetTexture(TopCenterTexture.texID);
Block[759]->SetPos(22, 41);
Block[759]->SetSize(1);
Block[759]->SetTexture(TopCenterTexture.texID);
Block[760]->SetPos(23, 41);
Block[760]->SetSize(1);
Block[760]->SetTexture(TopCenterTexture.texID);
Block[761]->SetPos(24, 41);
Block[761]->SetSize(1);
Block[761]->SetTexture(TopCenterTexture.texID);
Block[762]->SetPos(25, 41);
Block[762]->SetSize(1);
Block[762]->SetTexture(TopCenterTexture.texID);
Block[763]->SetPos(26, 41);
Block[763]->SetSize(1);
Block[763]->SetTexture(TopCenterTexture.texID);
Block[764]->SetPos(27, 41);
Block[764]->SetSize(1);
Block[764]->SetTexture(TopCenterTexture.texID);
Block[765]->SetPos(28, 41);
Block[765]->SetSize(1);
Block[765]->SetTexture(TopCenterTexture.texID);
Block[766]->SetPos(29, 41);
Block[766]->SetSize(1);
Block[766]->SetTexture(TopCenterTexture.texID);
Block[767]->SetPos(30, 41);
Block[767]->SetSize(1);
Block[767]->SetTexture(TopCenterTexture.texID);
Block[768]->SetPos(31, 41);
Block[768]->SetSize(1);
Block[768]->SetTexture(TopCenterTexture.texID);
Block[769]->SetPos(32, 41);
Block[769]->SetSize(1);
Block[769]->SetTexture(TopCenterTexture.texID);
Block[770]->SetPos(33, 41);
Block[770]->SetSize(1);
Block[770]->SetTexture(TopCenterTexture.texID);
Block[771]->SetPos(34, 41);
Block[771]->SetSize(1);
Block[771]->SetTexture(TopCenterTexture.texID);
Block[772]->SetPos(35, 41);
Block[772]->SetSize(1);
Block[772]->SetTexture(TopCenterTexture.texID);
Block[773]->SetPos(36, 41);
Block[773]->SetSize(1);
Block[773]->SetTexture(TopCenterTexture.texID);
Block[774]->SetPos(37, 41);
Block[774]->SetSize(1);
Block[774]->SetTexture(TopCenterTexture.texID);
Block[775]->SetPos(38, 41);
Block[775]->SetSize(1);
Block[775]->SetTexture(TopCenterTexture.texID);
Block[776]->SetPos(39, 41);
Block[776]->SetSize(1);
Block[776]->SetTexture(TopCenterTexture.texID);
Block[777]->SetPos(40, 41);
Block[777]->SetSize(1);
Block[777]->SetTexture(TopCenterTexture.texID);
Block[778]->SetPos(41, 41);
Block[778]->SetSize(1);
Block[778]->SetTexture(TopCenterTexture.texID);
Block[779]->SetPos(42, 41);
Block[779]->SetSize(1);
Block[779]->SetTexture(TopCenterTexture.texID);
Block[780]->SetPos(43, 41);
Block[780]->SetSize(1);
Block[780]->SetTexture(TopCenterTexture.texID);
Block[781]->SetPos(44, 41);
Block[781]->SetSize(1);
Block[781]->SetTexture(TopCenterTexture.texID);
Block[782]->SetPos(45, 41);
Block[782]->SetSize(1);
Block[782]->SetTexture(TopCenterTexture.texID);
Block[783]->SetPos(46, 41);
Block[783]->SetSize(1);
Block[783]->SetTexture(TopCenterTexture.texID);
Block[784]->SetPos(47, 41);
Block[784]->SetSize(1);
Block[784]->SetTexture(TopCenterTexture.texID);
Block[785]->SetPos(48, 41);
Block[785]->SetSize(1);
Block[785]->SetTexture(TopCenterTexture.texID);
Block[786]->SetPos(49, 41);
Block[786]->SetSize(1);
Block[786]->SetTexture(TopCenterTexture.texID);
Block[787]->SetPos(50, 41);
Block[787]->SetSize(1);
Block[787]->SetTexture(TopCenterTexture.texID);
Block[788]->SetPos(51, 41);
Block[788]->SetSize(1);
Block[788]->SetTexture(TopCenterTexture.texID);
Block[789]->SetPos(52, 41);
Block[789]->SetSize(1);
Block[789]->SetTexture(TopCenterTexture.texID);
Block[790]->SetPos(53, 41);
Block[790]->SetSize(1);
Block[790]->SetTexture(TopCenterTexture.texID);
Block[791]->SetPos(54, 41);
Block[791]->SetSize(1);
Block[791]->SetTexture(TopCenterTexture.texID);
Block[792]->SetPos(55, 41);
Block[792]->SetSize(1);
Block[792]->SetTexture(TopCenterTexture.texID);
Block[793]->SetPos(56, 41);
Block[793]->SetSize(1);
Block[793]->SetTexture(TopCenterTexture.texID);
Block[794]->SetPos(57, 41);
Block[794]->SetSize(1);
Block[794]->SetTexture(TopCenterTexture.texID);
Block[795]->SetPos(58, 41);
Block[795]->SetSize(1);
Block[795]->SetTexture(TopCenterTexture.texID);
Block[796]->SetPos(59, 41);
Block[796]->SetSize(1);
Block[796]->SetTexture(TopCenterTexture.texID);
Block[797]->SetPos(0, 40);
Block[797]->SetSize(1);
Block[797]->SetTexture(CenterLeftTexture.texID);
Block[798]->SetPos(1, 40);
Block[798]->SetSize(1);
Block[798]->SetTexture(CenterCenterTexture.texID);
Block[799]->SetPos(2, 40);
Block[799]->SetSize(1);
Block[799]->SetTexture(CenterCenterTexture.texID);
Block[800]->SetPos(3, 40);
Block[800]->SetSize(1);
Block[800]->SetTexture(CenterCenterTexture.texID);
Block[801]->SetPos(4, 40);
Block[801]->SetSize(1);
Block[801]->SetTexture(CenterCenterTexture.texID);
Block[802]->SetPos(5, 40);
Block[802]->SetSize(1);
Block[802]->SetTexture(CenterCenterTexture.texID);
Block[803]->SetPos(6, 40);
Block[803]->SetSize(1);
Block[803]->SetTexture(CenterCenterTexture.texID);
Block[804]->SetPos(7, 40);
Block[804]->SetSize(1);
Block[804]->SetTexture(CenterCenterTexture.texID);
Block[805]->SetPos(8, 40);
Block[805]->SetSize(1);
Block[805]->SetTexture(CenterCenterTexture.texID);
Block[806]->SetPos(9, 40);
Block[806]->SetSize(1);
Block[806]->SetTexture(CenterCenterTexture.texID);
Block[807]->SetPos(10, 40);
Block[807]->SetSize(1);
Block[807]->SetTexture(CenterCenterTexture.texID);
Block[808]->SetPos(11, 40);
Block[808]->SetSize(1);
Block[808]->SetTexture(CenterCenterTexture.texID);
Block[809]->SetPos(12, 40);
Block[809]->SetSize(1);
Block[809]->SetTexture(CenterCenterTexture.texID);
Block[810]->SetPos(13, 40);
Block[810]->SetSize(1);
Block[810]->SetTexture(CenterCenterTexture.texID);
Block[811]->SetPos(14, 40);
Block[811]->SetSize(1);
Block[811]->SetTexture(CenterCenterTexture.texID);
Block[812]->SetPos(15, 40);
Block[812]->SetSize(1);
Block[812]->SetTexture(CenterCenterTexture.texID);
Block[813]->SetPos(16, 40);
Block[813]->SetSize(1);
Block[813]->SetTexture(CenterCenterTexture.texID);
Block[814]->SetPos(17, 40);
Block[814]->SetSize(1);
Block[814]->SetTexture(CenterCenterTexture.texID);
Block[815]->SetPos(18, 40);
Block[815]->SetSize(1);
Block[815]->SetTexture(CenterCenterTexture.texID);
Block[816]->SetPos(19, 40);
Block[816]->SetSize(1);
Block[816]->SetTexture(CenterCenterTexture.texID);
Block[817]->SetPos(20, 40);
Block[817]->SetSize(1);
Block[817]->SetTexture(CenterCenterTexture.texID);
Block[818]->SetPos(21, 40);
Block[818]->SetSize(1);
Block[818]->SetTexture(CenterCenterTexture.texID);
Block[819]->SetPos(22, 40);
Block[819]->SetSize(1);
Block[819]->SetTexture(CenterCenterTexture.texID);
Block[820]->SetPos(23, 40);
Block[820]->SetSize(1);
Block[820]->SetTexture(CenterCenterTexture.texID);
Block[821]->SetPos(24, 40);
Block[821]->SetSize(1);
Block[821]->SetTexture(CenterCenterTexture.texID);
Block[822]->SetPos(25, 40);
Block[822]->SetSize(1);
Block[822]->SetTexture(CenterCenterTexture.texID);
Block[823]->SetPos(26, 40);
Block[823]->SetSize(1);
Block[823]->SetTexture(CenterCenterTexture.texID);
Block[824]->SetPos(27, 40);
Block[824]->SetSize(1);
Block[824]->SetTexture(CenterCenterTexture.texID);
Block[825]->SetPos(28, 40);
Block[825]->SetSize(1);
Block[825]->SetTexture(CenterCenterTexture.texID);
Block[826]->SetPos(29, 40);
Block[826]->SetSize(1);
Block[826]->SetTexture(CenterCenterTexture.texID);
Block[827]->SetPos(30, 40);
Block[827]->SetSize(1);
Block[827]->SetTexture(CenterCenterTexture.texID);
Block[828]->SetPos(31, 40);
Block[828]->SetSize(1);
Block[828]->SetTexture(CenterCenterTexture.texID);
Block[829]->SetPos(32, 40);
Block[829]->SetSize(1);
Block[829]->SetTexture(CenterCenterTexture.texID);
Block[830]->SetPos(33, 40);
Block[830]->SetSize(1);
Block[830]->SetTexture(CenterCenterTexture.texID);
Block[831]->SetPos(34, 40);
Block[831]->SetSize(1);
Block[831]->SetTexture(CenterCenterTexture.texID);
Block[832]->SetPos(35, 40);
Block[832]->SetSize(1);
Block[832]->SetTexture(CenterCenterTexture.texID);
Block[833]->SetPos(36, 40);
Block[833]->SetSize(1);
Block[833]->SetTexture(CenterCenterTexture.texID);
Block[834]->SetPos(37, 40);
Block[834]->SetSize(1);
Block[834]->SetTexture(CenterCenterTexture.texID);
Block[835]->SetPos(38, 40);
Block[835]->SetSize(1);
Block[835]->SetTexture(CenterCenterTexture.texID);
Block[836]->SetPos(39, 40);
Block[836]->SetSize(1);
Block[836]->SetTexture(CenterCenterTexture.texID);
Block[837]->SetPos(40, 40);
Block[837]->SetSize(1);
Block[837]->SetTexture(CenterCenterTexture.texID);
Block[838]->SetPos(41, 40);
Block[838]->SetSize(1);
Block[838]->SetTexture(CenterCenterTexture.texID);
Block[839]->SetPos(42, 40);
Block[839]->SetSize(1);
Block[839]->SetTexture(CenterCenterTexture.texID);
Block[840]->SetPos(43, 40);
Block[840]->SetSize(1);
Block[840]->SetTexture(CenterCenterTexture.texID);
Block[841]->SetPos(44, 40);
Block[841]->SetSize(1);
Block[841]->SetTexture(CenterCenterTexture.texID);
Block[842]->SetPos(45, 40);
Block[842]->SetSize(1);
Block[842]->SetTexture(CenterCenterTexture.texID);
Block[843]->SetPos(46, 40);
Block[843]->SetSize(1);
Block[843]->SetTexture(CenterCenterTexture.texID);
Block[844]->SetPos(47, 40);
Block[844]->SetSize(1);
Block[844]->SetTexture(CenterCenterTexture.texID);
Block[845]->SetPos(48, 40);
Block[845]->SetSize(1);
Block[845]->SetTexture(CenterCenterTexture.texID);
Block[846]->SetPos(49, 40);
Block[846]->SetSize(1);
Block[846]->SetTexture(CenterCenterTexture.texID);
Block[847]->SetPos(50, 40);
Block[847]->SetSize(1);
Block[847]->SetTexture(CenterCenterTexture.texID);
Block[848]->SetPos(51, 40);
Block[848]->SetSize(1);
Block[848]->SetTexture(CenterCenterTexture.texID);
Block[849]->SetPos(52, 40);
Block[849]->SetSize(1);
Block[849]->SetTexture(CenterCenterTexture.texID);
Block[850]->SetPos(53, 40);
Block[850]->SetSize(1);
Block[850]->SetTexture(CenterCenterTexture.texID);
Block[851]->SetPos(54, 40);
Block[851]->SetSize(1);
Block[851]->SetTexture(CenterCenterTexture.texID);
Block[852]->SetPos(55, 40);
Block[852]->SetSize(1);
Block[852]->SetTexture(CenterCenterTexture.texID);
Block[853]->SetPos(56, 40);
Block[853]->SetSize(1);
Block[853]->SetTexture(CenterCenterTexture.texID);
Block[854]->SetPos(57, 40);
Block[854]->SetSize(1);
Block[854]->SetTexture(CenterCenterTexture.texID);
Block[855]->SetPos(58, 40);
Block[855]->SetSize(1);
Block[855]->SetTexture(CenterCenterTexture.texID);
Block[856]->SetPos(59, 40);
Block[856]->SetSize(1);
Block[856]->SetTexture(CenterCenterTexture.texID);
Block[857]->SetPos(0, 39);
Block[857]->SetSize(1);
Block[857]->SetTexture(CenterLeftTexture.texID);
Block[858]->SetPos(1, 39);
Block[858]->SetSize(1);
Block[858]->SetTexture(CenterCenterTexture.texID);
Block[859]->SetPos(2, 39);
Block[859]->SetSize(1);
Block[859]->SetTexture(CenterCenterTexture.texID);
Block[860]->SetPos(3, 39);
Block[860]->SetSize(1);
Block[860]->SetTexture(CenterCenterTexture.texID);
Block[861]->SetPos(4, 39);
Block[861]->SetSize(1);
Block[861]->SetTexture(CenterCenterTexture.texID);
Block[862]->SetPos(5, 39);
Block[862]->SetSize(1);
Block[862]->SetTexture(CenterCenterTexture.texID);
Block[863]->SetPos(6, 39);
Block[863]->SetSize(1);
Block[863]->SetTexture(CenterCenterTexture.texID);
Block[864]->SetPos(7, 39);
Block[864]->SetSize(1);
Block[864]->SetTexture(CenterCenterTexture.texID);
Block[865]->SetPos(8, 39);
Block[865]->SetSize(1);
Block[865]->SetTexture(CenterCenterTexture.texID);
Block[866]->SetPos(9, 39);
Block[866]->SetSize(1);
Block[866]->SetTexture(CenterCenterTexture.texID);
Block[867]->SetPos(10, 39);
Block[867]->SetSize(1);
Block[867]->SetTexture(CenterCenterTexture.texID);
Block[868]->SetPos(11, 39);
Block[868]->SetSize(1);
Block[868]->SetTexture(CenterCenterTexture.texID);
Block[869]->SetPos(12, 39);
Block[869]->SetSize(1);
Block[869]->SetTexture(CenterCenterTexture.texID);
Block[870]->SetPos(13, 39);
Block[870]->SetSize(1);
Block[870]->SetTexture(CenterCenterTexture.texID);
Block[871]->SetPos(14, 39);
Block[871]->SetSize(1);
Block[871]->SetTexture(CenterCenterTexture.texID);
Block[872]->SetPos(15, 39);
Block[872]->SetSize(1);
Block[872]->SetTexture(CenterCenterTexture.texID);
Block[873]->SetPos(16, 39);
Block[873]->SetSize(1);
Block[873]->SetTexture(CenterCenterTexture.texID);
Block[874]->SetPos(17, 39);
Block[874]->SetSize(1);
Block[874]->SetTexture(CenterCenterTexture.texID);
Block[875]->SetPos(18, 39);
Block[875]->SetSize(1);
Block[875]->SetTexture(CenterCenterTexture.texID);
Block[876]->SetPos(19, 39);
Block[876]->SetSize(1);
Block[876]->SetTexture(CenterCenterTexture.texID);
Block[877]->SetPos(20, 39);
Block[877]->SetSize(1);
Block[877]->SetTexture(CenterCenterTexture.texID);
Block[878]->SetPos(21, 39);
Block[878]->SetSize(1);
Block[878]->SetTexture(CenterCenterTexture.texID);
Block[879]->SetPos(22, 39);
Block[879]->SetSize(1);
Block[879]->SetTexture(CenterCenterTexture.texID);
Block[880]->SetPos(23, 39);
Block[880]->SetSize(1);
Block[880]->SetTexture(CenterCenterTexture.texID);
Block[881]->SetPos(24, 39);
Block[881]->SetSize(1);
Block[881]->SetTexture(CenterCenterTexture.texID);
Block[882]->SetPos(25, 39);
Block[882]->SetSize(1);
Block[882]->SetTexture(CenterCenterTexture.texID);
Block[883]->SetPos(26, 39);
Block[883]->SetSize(1);
Block[883]->SetTexture(CenterCenterTexture.texID);
Block[884]->SetPos(27, 39);
Block[884]->SetSize(1);
Block[884]->SetTexture(CenterCenterTexture.texID);
Block[885]->SetPos(28, 39);
Block[885]->SetSize(1);
Block[885]->SetTexture(CenterCenterTexture.texID);
Block[886]->SetPos(29, 39);
Block[886]->SetSize(1);
Block[886]->SetTexture(CenterCenterTexture.texID);
Block[887]->SetPos(30, 39);
Block[887]->SetSize(1);
Block[887]->SetTexture(CenterCenterTexture.texID);
Block[888]->SetPos(31, 39);
Block[888]->SetSize(1);
Block[888]->SetTexture(CenterCenterTexture.texID);
Block[889]->SetPos(32, 39);
Block[889]->SetSize(1);
Block[889]->SetTexture(CenterCenterTexture.texID);
Block[890]->SetPos(33, 39);
Block[890]->SetSize(1);
Block[890]->SetTexture(CenterCenterTexture.texID);
Block[891]->SetPos(34, 39);
Block[891]->SetSize(1);
Block[891]->SetTexture(CenterCenterTexture.texID);
Block[892]->SetPos(35, 39);
Block[892]->SetSize(1);
Block[892]->SetTexture(CenterCenterTexture.texID);
Block[893]->SetPos(36, 39);
Block[893]->SetSize(1);
Block[893]->SetTexture(CenterCenterTexture.texID);
Block[894]->SetPos(37, 39);
Block[894]->SetSize(1);
Block[894]->SetTexture(CenterCenterTexture.texID);
Block[895]->SetPos(38, 39);
Block[895]->SetSize(1);
Block[895]->SetTexture(CenterCenterTexture.texID);
Block[896]->SetPos(39, 39);
Block[896]->SetSize(1);
Block[896]->SetTexture(CenterCenterTexture.texID);
Block[897]->SetPos(40, 39);
Block[897]->SetSize(1);
Block[897]->SetTexture(CenterCenterTexture.texID);
Block[898]->SetPos(41, 39);
Block[898]->SetSize(1);
Block[898]->SetTexture(CenterCenterTexture.texID);
Block[899]->SetPos(42, 39);
Block[899]->SetSize(1);
Block[899]->SetTexture(CenterCenterTexture.texID);
Block[900]->SetPos(43, 39);
Block[900]->SetSize(1);
Block[900]->SetTexture(CenterCenterTexture.texID);
Block[901]->SetPos(44, 39);
Block[901]->SetSize(1);
Block[901]->SetTexture(CenterCenterTexture.texID);
Block[902]->SetPos(45, 39);
Block[902]->SetSize(1);
Block[902]->SetTexture(CenterCenterTexture.texID);
Block[903]->SetPos(46, 39);
Block[903]->SetSize(1);
Block[903]->SetTexture(CenterCenterTexture.texID);
Block[904]->SetPos(47, 39);
Block[904]->SetSize(1);
Block[904]->SetTexture(CenterCenterTexture.texID);
Block[905]->SetPos(48, 39);
Block[905]->SetSize(1);
Block[905]->SetTexture(CenterCenterTexture.texID);
Block[906]->SetPos(49, 39);
Block[906]->SetSize(1);
Block[906]->SetTexture(CenterCenterTexture.texID);
Block[907]->SetPos(50, 39);
Block[907]->SetSize(1);
Block[907]->SetTexture(CenterCenterTexture.texID);
Block[908]->SetPos(51, 39);
Block[908]->SetSize(1);
Block[908]->SetTexture(CenterCenterTexture.texID);
Block[909]->SetPos(52, 39);
Block[909]->SetSize(1);
Block[909]->SetTexture(CenterCenterTexture.texID);
Block[910]->SetPos(53, 39);
Block[910]->SetSize(1);
Block[910]->SetTexture(CenterCenterTexture.texID);
Block[911]->SetPos(54, 39);
Block[911]->SetSize(1);
Block[911]->SetTexture(CenterCenterTexture.texID);
Block[912]->SetPos(55, 39);
Block[912]->SetSize(1);
Block[912]->SetTexture(CenterCenterTexture.texID);
Block[913]->SetPos(56, 39);
Block[913]->SetSize(1);
Block[913]->SetTexture(CenterCenterTexture.texID);
Block[914]->SetPos(57, 39);
Block[914]->SetSize(1);
Block[914]->SetTexture(CenterCenterTexture.texID);
Block[915]->SetPos(58, 39);
Block[915]->SetSize(1);
Block[915]->SetTexture(CenterCenterTexture.texID);
Block[916]->SetPos(59, 39);
Block[916]->SetSize(1);
Block[916]->SetTexture(CenterCenterTexture.texID);
}